Submission #894164

#TimeUsernameProblemLanguageResultExecution timeMemory
894164ozner77Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <iostream> #include <vector> using namespace std; int a,b; 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/ccTjEQiD.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccVsISMD.o:shoes.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccTjEQiD.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