제출 #2941

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

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

easy.cpp: In function 'void CountPair(int, int*)':
easy.cpp:6:11: error: return-statement with a value, in function returning 'void' [-fpermissive]