Submission #8582

#TimeUsernameProblemLanguageResultExecution timeMemory
8582jjim9417최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include <algorithm> int GetMax(int N, int *A){ sort(A,A+N); return A[N-1]; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:5:12: error: 'sort' was not declared in this scope
tutorial2.cpp:5:12: note: suggested alternative:
/usr/include/c++/4.6/bits/stl_algo.h:5430:5: note:   'std::sort'