Submission #894177

#TimeUsernameProblemLanguageResultExecution timeMemory
894177ozner77Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> using namespace std; int main() { int a,b; vector<int> S; cin>>a; for(int i=0;i<a*2;i++){ cin>>b; S.push_back(b); } if(S[0]<0){ int count_swaps=0; printf("%d",count_swaps); }else{ int count_swaps=1; printf("%d",count_swaps); } }

Compilation message (stderr)

/usr/bin/ld: /tmp/cceXu04j.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cciF2Q5l.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cceXu04j.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