Submission #1037406

#TimeUsernameProblemLanguageResultExecution timeMemory
1037406HienTD최댓값 (tutorial2)C++14
Compilation error
0 ms0 KiB
int GetMax(int N, int *A){ int res = 0; for(int i = 0; i < N; ++ i) res = min(A[i], res); return res; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:3:37: error: 'min' was not declared in this scope
    3 |   for(int i = 0; i < N; ++ i) res = min(A[i], res);
      |                                     ^~~