답안 #884657

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
884657 2023-12-07T22:29:41 Z Yumesekai Bubble Sort 2 (JOI18_bubblesort2) C++17
컴파일 오류
0 ms 0 KB
#include<iostream>
using namespace std;
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx2")
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/ccqc2CL7.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc648md8.o:bubblesort2.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccqc2CL7.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