Submission #306438

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
3064382020-09-25 15:16:55TemmieGame (IOI13_game)C++17
Compilation error
0 ms0 KiB
#include "game.h"
#include <bits/stdc++.h>
typedef long long ll;
const ll size = 1073741824;
struct Node {
Node* tl, * tr, * bl, * br;
ll topLx, topLy, recSize;
ll valu;
Node(ll X, ll Y, ll recsize) :
tl(nullptr), tr(nullptr), bl(nullptr), br(nullptr),
topLx(X), topLy(Y), recSize(recsize),
valu(0)
{ }
~Node() {
if (tl) delete(tl);
if (tl) delete(tr);
if (bl) delete(bl);
if (br) delete(br);
}
void update(ll x, ll y, ll val) {
if (x < topLx || x >= topLx + recSize || y < topLy || y >= topLy + recSize) return;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

game.cpp: In member function 'void Node::update(ll, ll, ll)':
game.cpp:42:40: error: 'gcd2' was not declared in this scope
   42 |   valu = gcd2(tl->valu, gcd2(tr->valu, gcd2(bl->valu, br->valu)));
      |                                        ^~~~
game.cpp:42:25: error: 'gcd2' was not declared in this scope
   42 |   valu = gcd2(tl->valu, gcd2(tr->valu, gcd2(bl->valu, br->valu)));
      |                         ^~~~
game.cpp:42:10: error: 'gcd2' was not declared in this scope
   42 |   valu = gcd2(tl->valu, gcd2(tr->valu, gcd2(bl->valu, br->valu)));
      |          ^~~~
game.cpp: In member function 'll Node::get(ll, ll, ll, ll)':
game.cpp:48:70: error: 'gcd2' was not declared in this scope
   48 |   return gcd2(tl->get(xl, yl, xr, yr), gcd2(tr->get(xl, yl, xr, yr), gcd2(bl->get(xl, yl, xr, yr), br->get(xl, yl, xr, yr))));
      |                                                                      ^~~~
game.cpp:48:40: error: 'gcd2' was not declared in this scope
   48 |   return gcd2(tl->get(xl, yl, xr, yr), gcd2(tr->get(xl, yl, xr, yr), gcd2(bl->get(xl, yl, xr, yr), br->get(xl, yl, xr, yr))));
      |                                        ^~~~
game.cpp:48:10: error: 'gcd2' was not declared in this scope
   48 |   return gcd2(tl->get(xl, yl, xr, yr), gcd2(tr->get(xl, yl, xr, yr), gcd2(bl->get(xl, yl, xr, yr), br->get(xl, yl, xr, yr))));
      |          ^~~~