Submission #894529

#TimeUsernameProblemLanguageResultExecution timeMemory
894529ozner77Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include "shoes.h" #include "bits/stdc++.h" using namespace std; long long count_swaps(std::vector<int> s) { int swaps; if(s[0]<0){ swaps=0; }else{ swaps=1; } return swaps; } int main(){ int a,b; vector<int> V; cin>>a; for(int i=0;i<a*2;i++){ cin>>b; V.push_back(b); } cout << count_swaps(V); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccTbrP4i.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccJvLf4i.o:shoes.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status