답안 #546431

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
546431 2022-04-07T14:24:38 Z blue Pipes (CEOI15_pipes) C++17
컴파일 오류
0 ms 0 KB
#include <iostream>
using namespace std;

const int mx = 100'000;

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);
	}
}

Compilation message

pipes.cpp: In function 'int main()':
pipes.cpp:8:2: error: 'vi' was not declared in this scope
    8 |  vi edge[1+mx];
      |  ^~
pipes.cpp:11:3: error: 'edge' was not declared in this scope
   11 |   edge[i].push_back(i+1);
      |   ^~~~