제출 #1252075

#제출 시각아이디문제언어결과실행 시간메모리
1252075antarbanikFinding Routers (IOI20_routers)C++20
컴파일 에러
0 ms0 KiB
#include "routers.h"
#include <bits/stdc++.h>
using namespace std;
#include <bits/stdc++.h>
using namespace std;
vector<int> find_routers(int l, int n, int q){
    vector<int> ans;

    ans.push_back(0);
    int i = 1;
    while(1){
        int x = use_defector(i);
        if(x == 0) ++i;
        else{
            ans.push_back(2);
            break;
        }

    }

        
    return ans;
}

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

routers.cpp: In function 'std::vector<int> find_routers(int, int, int)':
routers.cpp:12:17: error: 'use_defector' was not declared in this scope; did you mean 'use_detector'?
   12 |         int x = use_defector(i);
      |                 ^~~~~~~~~~~~
      |                 use_detector