Submission #884658

# Submission time Handle Problem Language Result Execution time Memory
884658 2023-12-07T22:30:54 Z Yumesekai Bubble Sort 2 (JOI18_bubblesort2) C++17
Compilation error
0 ms 0 KB
#include<iostream>
using namespace std;
int cnt=0;
int main()
{
  	for(int i=1;i<=30000;i++)
    {
      for(int j=1;j<=30000;j++)
      {
        if(i%j<=10) cnt++;
      }
    }
  cout<<cnt;
  return 0;
}

Compilation message

/usr/bin/ld: /tmp/cc2CHH8n.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccY1qLtl.o:bubblesort2.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cc2CHH8n.o: in function `main':
grader.cpp:(.text.startup+0x181): undefined reference to `countScans(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status