Submission #5048

#TimeUsernameProblemLanguageResultExecution timeMemory
5048jspark19990205최댓값 (tutorial2)C++98
Compilation error
0 ms0 KiB
int GetMax(int n, int *A) { int max = 0; for(i=0;i<n;i++) if(max<=A[i]) max = A[i]; return 0; }

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:4:7: error: 'i' was not declared in this scope