Submission #741479

# Submission time Handle Problem Language Result Execution time Memory
741479 2023-05-14T08:02:59 Z rahidilbayramli 쉬운 문제 (GA3_easy) C++17
Compilation error
0 ms 0 KB
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

/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