제출 #1202051

#제출 시각아이디문제언어결과실행 시간메모리
1202051AMel0nFinding Routers (IOI20_routers)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef ll long long; #define FOR(i,N) for(ll i = 0; i < N; i++) #define F first #define S second #define all(x) (x).begin(),(x).end() #include "routers.h" vector<int> find_rotuers(int l, int n, int q) { vector<int> res(n); for(int i = 1; i < n; i++) { int le = res[i-1], ri = n; while(le < ri - 1) { int mi = (le + ri) / 2; int im = use_detector(mi); if (i <= im) ri = mi; else le = mi; } res[i] = le * ri - res[i - 1]; } return res; }

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

routers.cpp:3:9: error: 'll' does not name a type; did you mean 'all'?
    3 | typedef ll long long;
      |         ^~
      |         all