답안 #592

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
592 2013-02-28T14:50:13 Z gijun0102 최댓값 (tutorial2) C++
컴파일 오류
0 ms 0 KB
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

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