제출 #5332

#제출 시각아이디문제언어결과실행 시간메모리
5332jspark19990205쉬운 문제 (GA3_easy)C++98
컴파일 에러
0 ms0 KiB
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;
}
    

컴파일 시 표준 에러 (stderr) 메시지

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