Submission #145778

#TimeUsernameProblemLanguageResultExecution timeMemory
145778xxxxorb0221최댓값 (tutorial2)C++14
Compilation error
0 ms0 KiB
#include<cstdio> #include<algorithm> using namespace std; int Getmax(int N,int[] A){ int ans=A[0]; for(int i=0;i<N;i++) ans=max(ans,A[i]); return ans; }

Compilation message (stderr)

tutorial2.cpp:4:24: error: expected ',' or '...' before 'A'
 int Getmax(int N,int[] A){
                        ^
tutorial2.cpp: In function 'int Getmax(int, int*)':
tutorial2.cpp:5:11: error: 'A' was not declared in this scope
   int ans=A[0];
           ^