Submission #7052

#TimeUsernameProblemLanguageResultExecution timeMemory
7052koosaga쉬운 문제 (GA3_easy)C++98
Compilation error
0 ms0 KiB
#include <stdio.h> int CountPair(int n, int *A){ for (i=0; i<n-1; i++) { for (j=i+1; j<n; j++) { if(a[j]%a[i]==0) r++; } } return r; }

Compilation message (stderr)

easy.cpp: In function 'int CountPair(int, int*)':
easy.cpp:4:10: error: 'i' was not declared in this scope
easy.cpp:5:14: error: 'j' was not declared in this scope
easy.cpp:6:16: error: 'a' was not declared in this scope
easy.cpp:6:30: error: 'r' was not declared in this scope
easy.cpp:9:10: error: 'r' was not declared in this scope
easy.cpp:10:1: warning: control reaches end of non-void function [-Wreturn-type]