Submission #741479

#TimeUsernameProblemLanguageResultExecution timeMemory
741479rahidilbayramli쉬운 문제 (GA3_easy)C++17
Compilation error
0 ms0 KiB
int countpairs(int n, int *a) { int k = 0, i, j; for(i = 0; i < n; i++) { for(j = i + 1; j < n; j++) { if(a[j] % a[i] == 0) k++; } } return k; }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccDj4qv4.o: in function `main':
grader.cpp:(.text.startup+0xaa): undefined reference to `CountPair(int, int*)'
collect2: error: ld returned 1 exit status