답안 #74965

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
74965 2018-09-07T18:50:45 Z khsoo01 통행료 (IOI18_highway) C++11
컴파일 오류
0 ms 0 KB
#include "highway.h"

ll query () {
	vector<int> V;
	for(int i=0;i<m;i++) {
		V.push_back(0);
	}
	return ask(V);
}

void find_pair(int _N, vector<int> _U, vector<int> _V, int _A, int _B) {
	for(int i=0;i<100;i++) {
		query();
	}
}

Compilation message

highway.cpp:3:1: error: 'll' does not name a type
 ll query () {
 ^~
highway.cpp:11:24: error: 'vector' has not been declared
 void find_pair(int _N, vector<int> _U, vector<int> _V, int _A, int _B) {
                        ^~~~~~
highway.cpp:11:30: error: expected ',' or '...' before '<' token
 void find_pair(int _N, vector<int> _U, vector<int> _V, int _A, int _B) {
                              ^
highway.cpp: In function 'void find_pair(int, int)':
highway.cpp:13:3: error: 'query' was not declared in this scope
   query();
   ^~~~~