답안 #5332

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
5332 2014-03-29T08:01:45 Z jspark19990205 쉬운 문제 (GA3_easy) C++
컴파일 오류
0 ms 0 KB
int CountPair(N,*A)
{
 int i, j, k=0;
 for(i=0;i>=n;i++)
 {
  for(j=i+1;j>=n;j++)
  {
   if(A[j]%A[i] == 0)
   k++     
  }          
 }
 return k;
}
    

Compilation message

easy.cpp:1:15: error: 'N' was not declared in this scope
easy.cpp:1:18: error: 'A' was not declared in this scope
easy.cpp:1:19: error: expression list treated as compound expression in initializer [-fpermissive]
easy.cpp:2:1: error: expected ',' or ';' before '{' token