제출 #546432

#제출 시각아이디문제언어결과실행 시간메모리
546432bluePipes (CEOI15_pipes)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> using namespace std; const int mx = 100'000; using vi = vector<int>; int main() { vi edge[1+mx]; for(int i = 1; i < mx; i++) { edge[i].push_back(i+1); edge[i+1].push_back(i); } }

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

pipes.cpp:5:12: error: 'vector' does not name a type
    5 | using vi = vector<int>;
      |            ^~~~~~
pipes.cpp: In function 'int main()':
pipes.cpp:9:2: error: 'vi' was not declared in this scope
    9 |  vi edge[1+mx];
      |  ^~
pipes.cpp:12:3: error: 'edge' was not declared in this scope
   12 |   edge[i].push_back(i+1);
      |   ^~~~