Submission #1028891

#TimeUsernameProblemLanguageResultExecution timeMemory
1028891dozerGame (IOI14_game)C++14
Compilation error
0 ms0 KiB
#include "game.h" #include <bits/stdc++.h> #pragma GCC Optimize("Ofast") using namespace std; #define sp " " #define endl "\n" #define fileio() freopen("input.txt", "r", stdin), freopen("output.txt","w", stdout) #define fastio() cin.tie(0), ios_base::sync_with_stdio(0) #define pb push_back #define pii pair<int, int> #define st first #define nd second #define LL node * 2 #define RR node * 2 #define mid (l + r) / 2 #define ll long long #define MAXN 1600 const int modulo = 1e9 + 7; const ll INF = 2e18 +7; int cnt[MAXN]; void initialize(int n) { N = n; for (int i = 0; i < n; i++){ cnt[i] = i; } } int hasEdge(int u, int v) { if (u > v) swap(u, v); if (cnt[v] == 1) return 1; cnt[v]--; return 0; }

Compilation message (stderr)

game.cpp:3: warning: ignoring '#pragma GCC Optimize' [-Wunknown-pragmas]
    3 | #pragma GCC Optimize("Ofast")
      | 
game.cpp: In function 'void initialize(int)':
game.cpp:26:5: error: 'N' was not declared in this scope
   26 |     N = n;
      |     ^