68482023-12-19 10:59:25BusMarkFormula-1cpp17Forditási hiba
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int N;
    cin >> N;
    int H[N], V[N], HM=-954541458, VM=-954541458;

    for(int i = 1; i <= N; i++)
        cin >> H[i];
    for(int i = 1; i <= N; i++)
        cin >> V[i];

    for(int i = 1; i <= N; i++)
    {
        if(H[i] > HM)
            HM = H[i]
    }

    return 0;

}
Forditási hiba
exit status 1
main.cpp: In function 'int main()':
main.cpp:20:22: error: expected ';' before '}' token
   20 |             HM = H[i]
      |                      ^
      |                      ;
   21 |     }
      |     ~                 
Exited with error status 1