Submission #448526

#TimeUsernameProblemLanguageResultExecution timeMemory
448526PhiCis최댓값 (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 = max(res, A[i]); } return res; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:6:9: error: 'max' was not declared in this scope
    6 |   res = max(res, A[i]);
      |         ^~~