Submission #2941

# Submission time Handle Problem Language Result Execution time Memory
2941 2013-08-13T10:47:10 Z imsifile 쉬운 문제 (GA3_easy) C++
Compilation error
0 ms 0 KB
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

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