Submission #148356

#TimeUsernameProblemLanguageResultExecution timeMemory
148356sg1774최댓값 (tutorial2)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; GetMax(int n, int a[200]) { int s=0; for(int i=0;i<n;i++) s=max(s,a[i]); printf("%d",s); return 0; }

Compilation message (stderr)

tutorial2.cpp:3:25: error: ISO C++ forbids declaration of 'GetMax' with no type [-fpermissive]
 GetMax(int n, int a[200])
                         ^