Submission #142766

#TimeUsernameProblemLanguageResultExecution timeMemory
142766thecodingwizardGame (IOI14_game)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "game.h"
using namespace std;
 
int ct[1500];
void initialize(int N) {
    F0R(i, N) ct[i] = 0;
}
int hasEdge(int u, int v) {
    return ++ct[max(u, v)] == max(u, v);
}

Compilation message (stderr)

game.cpp: In function 'void initialize(int)':
game.cpp:7:9: error: 'i' was not declared in this scope
     F0R(i, N) ct[i] = 0;
         ^
game.cpp:7:5: error: 'F0R' was not declared in this scope
     F0R(i, N) ct[i] = 0;
     ^~~