Submission #282800

#TimeUsernameProblemLanguageResultExecution timeMemory
282800OzyRail (IOI14_rail)C++17
Compilation error
0 ms0 KiB
#include ".\rail-templates\rail.h" #include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for (int i = (a); i <= (b); i++) void findLocation(int N, int first, int location[], int stype[]) { int prim,pos,dis,MIN,a,b; MIN = -1; rep(i,1,N-1) { dis = getDistance(N,i); if (MIN == -1 || dis < MIN) { MIN = dis; pos = first + dis; prim = i; } } location[N] = first; location[prim] = pos; stype[N] = 'C'; stype[prim] = 'D'; rep(i,1,N-1) { if (i != prim) { a = getDistance(N,i); b = getDistance(prim,i); if (a < b) { location[i] = first + a; stype[i] = 'D'; } else { location[i] = pos - b; stype[i] = 'C'; } } } }

Compilation message (stderr)

rail.cpp:1:10: fatal error: .\rail-templates\rail.h: No such file or directory
    1 | #include ".\rail-templates\rail.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.