Submission #5366

# Submission time Handle Problem Language Result Execution time Memory
5366 2014-04-12T16:14:44 Z ansol4328 쉬운 문제 (GA3_easy) C++
Compilation error
0 ms 0 KB
int CountPair(n,*a)
{
    int cnt=0, i, j;
    for(i=0 ; i<n ; i++) for(j=i+1 ; j<n ; j++) if(a[j]%a[i]==0) cnt++;
    return cnt;
}

Compilation message

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