Submission #952658

#TimeUsernameProblemLanguageResultExecution timeMemory
952658batsukh2006Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include<iostream> #include<stdio.h> #include<math.h> #include<map> #include<string> #include<algorithm> #include<vector> #include<string.h> #include<utility> #include<set> #include<cmath> #include<queue> #include<deque> #include<functional> #include<stack> #include<limits.h> #include<iomanip> #include<unordered_map> #include "shoes.h" using namespace std; #define MOD 1000000007 #define int long long #define endl '\n' int count_swaps(int a[]){ if(a[0]<0) return 0; else return 1; } // signed main(){ // // freopen("hps.in", "r", stdin); // // freopen("hps.out", "w", stdout); // ios::sync_with_stdio(0); // cin.tie(0); // cout.tie(0); // int t=1; // // cin>>t; // while(t--){ // solve(); // cout<<endl; // } // return 0; // }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccWK3fLI.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