제출 #95302

#제출 시각아이디문제언어결과실행 시간메모리
95302xiaowuc1쉬운 문제 (GA3_easy)C++14
컴파일 에러
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; }

컴파일 시 표준 에러 (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)
                                                   ^