Submission #894159

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

Compilation message (stderr)

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