Submission #592

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

Compilation message (stderr)

tutorial2.cpp: In function 'int GetMax(int, int*)':
tutorial2.cpp:4:26: error: expected ';' before ')' token