Submission #21100

#TimeUsernameProblemLanguageResultExecution timeMemory
21100yunhoo90최댓값 (tutorial2)C++11
Compilation error
0 ms0 KiB
int GetMax(int N, int A[]) { int m = -987654321; for (int i = 0; i < N; i++) { m = max(A[i], m); } return m; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:4:18: error: 'max' was not declared in this scope
   m = max(A[i], m);
                  ^