제출 #832144

#제출 시각아이디문제언어결과실행 시간메모리
832144makanhuliaArranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h> #define ll long long #define fi first #define se second #define pb push_back #define pqueue priority_queue #define int long long #define pii pair<int,int> #define supercepat ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(0); //GA AC GA LAKI using namespace std; int tc,ans=0,n; main(){ supercepat; }

컴파일 시 표준 에러 (stderr) 메시지

shoes.cpp:13:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   13 | main(){
      | ^~~~
/usr/bin/ld: /tmp/ccqOd1xo.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccCFo6So.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccqOd1xo.o: in function `main':
grader.cpp:(.text.startup+0x2a8): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status