제출 #1348586

#제출 시각아이디문제언어결과실행 시간메모리
1348586bananacookieComputer Network (BOI14_network)C11
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;

const int NN=1005;
vector<int> dist[NN];


#include "network.h"


void findRoute (int N, int a, int b)
{
    int maxa_i=0;
    int dist_ans=ping(a,b);
    bool hasbetween=false;

    for(int i=1;i<=N;i++){
        if(i!=a && i!=b){
            int a_i=ping(a,i),i_b=ping(i,b);
            maxa_i=max(maxa_i,a_i);
            if(a_i+i_b+1==dist_ans){ //on shortest path
                dist[a_i].push_back(i);
                hasbetween=true;
            }
        }
    }

    int cur=-1;
    if(hasbetween){
        travelTo(dist[0][0]);
        cur=dist[0][0];
    }
    else{
        travelTo(b); return;
    }

    for(int i=1;i<=maxa_i;i++){
        for(int v:dist[i]){
            if(ping(cur,v)==0){
                travelTo(v);
                cur=v;
            }
        }
    }

    travelTo(b);
}

컴파일 시 표준 에러 (stderr) 메시지

network.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
grader.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.