Submission #341984

#TimeUsernameProblemLanguageResultExecution timeMemory
341984MarlovRail (IOI14_rail)C++14
Compilation error
0 ms0 KiB
/* Code by @marlov */ #include <iostream> #include <fstream> #include <string> #include <sstream> #include <vector> #include <string> #include <cmath> #include <algorithm> #include <iomanip> #include <utility> #include <set> #include <unordered_set> #include <map> #include <unordered_map> #include <stack> #include <queue> #include <iterator> #include <bitset> #include <rail.h> using namespace std; typedef long long ll; typedef pair<int,int> ii; void findLocation(int n, int first, vector<int> location, vector<int> stype){ for(int i=0;i<n;i++){ location[i]=first+getDistance(0,i); stype[i]=2; } stype[0]=1; } /* int main() { ios_base::sync_with_stdio(0); cin.tie(0); return 0; } */ /* stuff you should look for * int overflow, array bounds * special cases (n=1,n=0?) * do smth instead of nothing and stay organized */

Compilation message (stderr)

/tmp/cciRB3e2.o: In function `main':
grader.cpp:(.text.startup+0x2bf): undefined reference to `findLocation'
collect2: error: ld returned 1 exit status