Submission #74968

#TimeUsernameProblemLanguageResultExecution timeMemory
74968khsoo01Highway Tolls (IOI18_highway)C++11
Compilation error
0 ms0 KiB
#include "highway.h" #include<bits/stdc++.h> using namespace std; long long 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) { m = (int)_U.size(); for(int i=0;i<100;i++) { query(); } }

Compilation message (stderr)

highway.cpp: In function 'long long int query()':
highway.cpp:7:16: error: 'm' was not declared in this scope
  for(int i=0;i<m;i++) {
                ^
highway.cpp: In function 'void find_pair(int, std::vector<int>, std::vector<int>, int, int)':
highway.cpp:14:2: error: 'm' was not declared in this scope
  m = (int)_U.size();
  ^
highway.cpp:14:2: note: suggested alternative: 'tm'
  m = (int)_U.size();
  ^
  tm