Submission #426856

# Submission time Handle Problem Language Result Execution time Memory
426856 2021-06-14T10:30:24 Z markthitrin Toy Train (IOI17_train) C++14
Compilation error
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++){
      |                         ^