제출 #972730

#제출 시각아이디문제언어결과실행 시간메모리
972730tamir1Game (APIO22_game)C++17
컴파일 에러
0 ms0 KiB
#include "game.h"

bitset<300001> vis;
vector<int> v[300001]
void init(int n, int k) {
	for(int i=0;i<k-1;i++){
		v[i].push(i+1);
	}
}

int add_teleporter(int u, int v) {
	if(u>=v) return 1;
	return 0;
}

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

game.cpp:3:1: error: 'bitset' does not name a type
    3 | bitset<300001> vis;
      | ^~~~~~
game.cpp:4:1: error: 'vector' does not name a type
    4 | vector<int> v[300001]
      | ^~~~~~