Submission #2941

#TimeUsernameProblemLanguageResultExecution timeMemory
2941imsifile쉬운 문제 (GA3_easy)C++98
Compilation error
0 ms0 KiB
int cnt,i,j; void CountPair(int n, int* ba){ for(i=0;i<n;i++){ for(j=0;j<i;j++)cnt+=!(ba[i]%ba[j]); } return cnt; }

Compilation message (stderr)

easy.cpp: In function 'void CountPair(int, int*)':
easy.cpp:6:11: error: return-statement with a value, in function returning 'void' [-fpermissive]