Submission #95302

#TimeUsernameProblemLanguageResultExecution timeMemory
95302xiaowuc1쉬운 문제 (GA3_easy)C++14
Compilation error
0 ms0 KiB
int CountPair(int N, int *A){ int ret = 0; for(int i = 0; i < N; i++) for(int j = i+1; j < n; j++) if(A[j] % A[i] == 0) ret++; return ret; }

Compilation message (stderr)

easy.cpp: In function 'int CountPair(int, int*)':
easy.cpp:3:51: error: 'n' was not declared in this scope
   for(int i = 0; i < N; i++) for(int j = i+1; j < n; j++) if(A[j] % A[i] == 0)
                                                   ^