Submission #14665

#TimeUsernameProblemLanguageResultExecution timeMemory
14665mondo최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
int GetMax(N, A) { whlie(N--) { cin >> A[N]; } return max_element(A.begin(), A.end()); }

Compilation message (stderr)

tutorial2.cpp:1:12: error: ‘N’ was not declared in this scope
 int GetMax(N, A)
            ^
tutorial2.cpp:1:15: error: ‘A’ was not declared in this scope
 int GetMax(N, A)
               ^
tutorial2.cpp:1:16: error: expression list treated as compound expression in initializer [-fpermissive]
 int GetMax(N, A)
                ^
tutorial2.cpp:2:1: error: expected ‘,’ or ‘;’ before ‘{’ token
 {
 ^