Submission #1252068

#TimeUsernameProblemLanguageResultExecution timeMemory
1252068antarbanikFinding Routers (IOI20_routers)C++20
Compilation error
0 ms0 KiB
#include "routers.h"
vector<int> find_routers(int l, int n, int q){
    vector<int> ans;

    ans.pb(0);

    for(int i = 1;i<=l;++i){
        if(use_detector(i) == 0) continue;
        ans.pb((i-1)*2);
    }

        
    return ans;
}

Compilation message (stderr)

routers.cpp:2:1: error: 'vector' does not name a type
    2 | vector<int> find_routers(int l, int n, int q){
      | ^~~~~~