Submission #574116

#TimeUsernameProblemLanguageResultExecution timeMemory
574116imsifileComputer Network (BOI14_network)C11
Compilation error
0 ms0 KiB
#include "network.h" int dd[1010]; int ping(int, int); void travelTo(int); void findRoute(int N, int a, int b) { for (int i = 1; i <= N; i++) dd[i] = i != b ? ping(i, b) : 0; int pv = a; for (int i = 1; i <= N; i++) { for (int j = 1; j <= N; j++) { if (dd[pv] != dd[j] + 1) continue; if (ping(pv, j) == 1) { travelTo(j); pv = j; break; } } if (pv == b) break; } }

Compilation message (stderr)

grader.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.