Submission #147381

#TimeUsernameProblemLanguageResultExecution timeMemory
147381mosiashvililukaArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "grader.cpp" using namespace std; long long a,b,c,d,e,f[200009]; long long count_swaps(int N, int S[]){ a=N*2; for(b=1; b<=a; b++) f[b]=S[b-1]; if(f[1]<0) return 0; else return 1; return 0; }

Compilation message (stderr)

/tmp/ccfMi9Df.o: In function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/cc2WOrkS.o:shoes.cpp:(.text.startup+0x0): first defined here
/tmp/cc2WOrkS.o: In function `main':
shoes.cpp:(.text.startup+0x282): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
/tmp/ccfMi9Df.o: In function `main':
grader.cpp:(.text.startup+0x282): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status