제출 #695

#제출 시각아이디문제언어결과실행 시간메모리
695gs12013쉬운 문제 (GA3_easy)C++98
컴파일 에러
0 ms0 KiB
int CountPair(int N, int *A) { int i, j, ans = 0; for(i=0;i<n-1;i++) for(j=0;j<n;j++) if(!(A[j]%A[i])) ans++; return ans; }

컴파일 시 표준 에러 (stderr) 메시지

grader.cpp:26:2: warning: no newline at end of file
easy.cpp: In function 'int CountPair(int, int*)':
easy.cpp:4: error: 'n' was not declared in this scope