Submission #152560

#TimeUsernameProblemLanguageResultExecution timeMemory
152560usernameTwo Transportations (JOI19_transportations)C++14
Compilation error
0 ms0 KiB
#include "Azer.h" #include<bits/stdc++.h> using namespace std; #define REP(i,j,k) for(int i=(j);i<(k);++i) void InitA(int _n,int a,vector<int>u,vector<int>v,vector<int>c) { } void ReceiveA(bool x){ } vector<int>Answer(){ vector<int>ret; REP(i,0,n)ret.pb(i); return ret; }
#include "Baijan.h" #include<bits/stdc++.h> using namespace std; #define REP(i,j,k) for(int i=(j);i<(k);++i) void InitB(int _n,int a,vector<int>u,vector<int>v,vector<int>c) { } void ReceiveB(bool x){ }

Compilation message (stderr)

Azer.cpp: In function 'std::vector<int> Answer()':
Azer.cpp:16:10: error: 'n' was not declared in this scope
  REP(i,0,n)ret.pb(i);
          ^
Azer.cpp:4:37: note: in definition of macro 'REP'
 #define REP(i,j,k) for(int i=(j);i<(k);++i)
                                     ^
Azer.cpp:16:16: error: 'class std::vector<int>' has no member named 'pb'
  REP(i,0,n)ret.pb(i);
                ^~