제출 #4978

#제출 시각아이디문제언어결과실행 시간메모리
4978lingxiang쉬운 문제 (GA3_easy)C++98
컴파일 에러
0 ms0 KiB
int CountPair(int N,int a[])
{
  int cnt=0;
  for(int i=0;i<N;i++)
  {
    for(int j=i+1;j<N;j++)
    {
      if(a[j]%a[i]==0) cnt++;
    }
  }
  printf("%d",cnt);
  return 0;
}

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

easy.cpp: In function 'int CountPair(int, int*)':
easy.cpp:11:18: error: 'printf' was not declared in this scope