제출 #1252081

#제출 시각아이디문제언어결과실행 시간메모리
1252081antarbanikFinding 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;

    for(int i = 0;i<=l++i){

        use_detector(i);    
    }

    ans.push_back(0);
    ans.push_back(2);
    return ans;
}

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

routers.cpp: In function 'std::vector<int> find_routers(int, int, int)':
routers.cpp:9:25: error: expected ';' before 'i'
    9 |     for(int i = 0;i<=l++i){
      |                         ^
      |                         ;