답안 #426856

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
426856 2021-06-14T10:30:24 Z markthitrin 장난감 기차 (IOI17_train) C++14
컴파일 오류
0 ms 0 KB
#include "train.h"

std::vector<int> who_wins(std::vector<int> a, std::vector<int> r, std::vector<int> u, std::vector<int> v) {
	std::vector<int> res(a.size());
	long long ans = 1;
    for(int q = 0 ;q<N*3;q++){
        for(int w = 0;w<M;w++){
            ans *= ans;
        }
    }
	return res;
}

Compilation message

train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:6:22: error: 'N' was not declared in this scope
    6 |     for(int q = 0 ;q<N*3;q++){
      |                      ^
train.cpp:7:25: error: 'M' was not declared in this scope
    7 |         for(int w = 0;w<M;w++){
      |                         ^