Submission #1252075

#TimeUsernameProblemLanguageResultExecution timeMemory
1252075antarbanikFinding Routers (IOI20_routers)C++20
Compilation error
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; }

Compilation message (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