Submission #18913

#TimeUsernameProblemLanguageResultExecution timeMemory
18913dltldls95최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
#include <algorithm> #include <iostream> int arr[10000] int main() { int num; std::cin >> num; for (int i = 0; i < num; i++) { std::cin >> arr[i]; } std::cout<<GetMax(num, arr)<<std::endl; return 0; } int GetMax(int n, int *a) { return *max_element(a, a + n); }

Compilation message (stderr)

tutorial2.cpp:4:2: error: expected initializer before ‘int’
  int main()
  ^