Submission #4978

#TimeUsernameProblemLanguageResultExecution timeMemory
4978lingxiang쉬운 문제 (GA3_easy)C++98
Compilation error
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; }

Compilation message (stderr)

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