Submission #8817

#TimeUsernameProblemLanguageResultExecution timeMemory
8817dolpang2최댓값 (tutorial2)C++14
Compilation error
0 ms0 KiB
#include <algorithm> int GetMax(int N, int *A){ int max_value = std::max_element(A, A + N); return max_value; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:4:44: error: invalid conversion from 'int*' to 'int' [-fpermissive]