Submission #799807

#TimeUsernameProblemLanguageResultExecution timeMemory
799807PixelCatToy Train (IOI17_train)C++14
Compilation error
0 ms0 KiB
#ifdef NYAOWO #include "grader.cpp" #endif #include "train.h" #include <bits/stdc++.h> #define For(i, a, b) for(int i = a; i <= b; i++) #define Forr(i, a, b) for(int i = a; i >= b; i--) #define F first #define S second #define all(x) x.begin(), x.end() #define sz(x) ((int)x.size()) #define eb emplace_back #define int LL using namespace std; using i32 = int32_t; using LL = long long; using pii = pair<int, int>; const int MAXN = 5000; vector<int> adj[MAXN + 10]; vector<int> rev[MAXN + 10]; int deg[MAXN + 10]; vector<i32> who_wins(vector<i32> a, vector<i32> r, vector<i32> u, vector<i32> v) { int n = sz(a); int m = sz(u); return mango; } /* 2 4 0 1 1 0 0 0 0 1 1 0 1 1 1 1 */

Compilation message (stderr)

train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:30:12: error: 'mango' was not declared in this scope
   30 |     return mango;
      |            ^~~~~
train.cpp:28:9: warning: unused variable 'n' [-Wunused-variable]
   28 |     int n = sz(a);
      |         ^
train.cpp:29:9: warning: unused variable 'm' [-Wunused-variable]
   29 |     int m = sz(u);
      |         ^