제출 #696

#제출 시각아이디문제언어결과실행 시간메모리
696gs12013쉬운 문제 (GA3_easy)C++98
컴파일 에러
0 ms0 KiB
#include <stdio.h> 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:6: error: 'n' was not declared in this scope