/in/foo.cc:9:2: error: '__int64' does not name a type
__int64 x, y ;
^~~~~~~
/in/foo.cc:51:17: error: expected ')' before '_x'
SBTree(__int64 _x = 0, __int64 _y = 0) {
^~
/in/foo.cc:106:10: error: expected ';' at end of member declaration
SBTree* getOptNode(__int64 angle) {
^~~~~~~~~~
/in/foo.cc:106:29: error: expected ')' before 'angle'
SBTree* getOptNode(__int64 angle) {
^~~~~
/in/foo.cc: In member function 'bool SBTree::operator<(SBTree*)':
/in/foo.cc:59:16: error: 'struct SBTree' has no member named 'x'
return this->x < that->x ||
^
/in/foo.cc:59:26: error: 'struct SBTree' has no member named 'x'
return this->x < that->x ||
^
/in/foo.cc:60:10: error: 'struct SBTree' has no member named 'x'
this->x == that->x && this->y < that->y ;
^
/in/foo.cc:60:21: error: 'struct SBTree' has no member named 'x'
this->x == that->x && this->y < that->y ;
^
/in/foo.cc:60:32: error: 'struct SBTree' has no member named 'y'
this->x == that->x && this->y < that->y ;
^
/in/foo.cc:60:42: error: 'struct SBTree' has no member named 'y'
this->x == that->x && this->y < that->y ;
^
/in/foo.cc: In member function 'bool SBTree::operator==(SBTree*)':
/in/foo.cc:63:16: error: 'struct SBTree' has no member named 'x'
return this->x == that->x && this->y == that->y ;
^
/in/foo.cc:63:27: error: 'struct SBTree' has no member named 'x'
return this->x == that->x && this->y == that->y ;
^
/in/foo.cc:63:38: error: 'struct SBTree' has no member named 'y'
return this->x == that->x && this->y == that->y ;
^
/in/foo.cc:63:49: error: 'struct SBTree' has no member named 'y'
return this->x == that->x && this->y == that->y ;
^
/in/foo.cc: In static member function 'static double SBTree::getAngle(SBTree*, SBTree*)':
/in/foo.cc:69:22: error: 'struct SBTree' has no member named 'y'
if (fabs(double(l->y - r->y)) <= 1e-8)
^
/in/foo.cc:69:29: error: 'struct SBTree' has no member named 'y'
if (fabs(double(l->y - r->y)) <= 1e-8)
^
/in/foo.cc:71:20: error: 'struct SBTree' has no member named 'x'
return double(l->x - r->x) / (l->y - r->y) ;
^
/in/foo.cc:71:27: error: 'struct SBTree' has no member named 'x'
return double(l->x - r->x) / (l->y - r->y) ;
^
/in/foo.cc:71:36: error: 'struct SBTree' has no member named 'y'
return double(l->x - r->x) / (l->y - r->y) ;
^
/in/foo.cc:71:43: error: 'struct SBTree' has no member named 'y'
return double(l->x - r->x) / (l->y - r->y) ;
^
/in/foo.cc: In member function 'void SBTree::debug()':
/in/foo.cc:147:24: warning: format '%d' expects argument of type 'int', but argument 2 has type 'SBTree*' [-Wformat=]
this, pL, pR, pB, pF) ;/*
^
/in/foo.cc:147:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'SBTree*' [-Wformat=]
/in/foo.cc:147:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'SBTree*' [-Wformat=]
/in/foo.cc:147:24: warning: format '%d' expects argument of type 'int', but argument 5 has type 'SBTree*' [-Wformat=]
/in/foo.cc:147:24: warning: format '%d' expects argument of type 'int', but argument 6 has type 'SBTree*' [-Wformat=]
/in/foo.cc: In member function 'void* MemoryPond::getMemory(size_t)':
/in/foo.cc:167:24: error: cast from 'void*' to 'int' loses precision [-fpermissive]
top = (void*) ((int) top + size) ;
^~~
/in/foo.cc:168:25: error: cast from 'void*' to 'int' loses precision [-fpermissive]
return (void*) ((int) top - size) ;
^~~
/in/foo.cc: At global scope:
/in/foo.cc:180:1: error: '__int64' does not name a type
__int64 t[MaxN], c[MaxN], st[MaxN], sc[MaxN], f[MaxN] ;
^~~~~~~
/in/foo.cc:182:1: error: '__int64' does not name a type
__int64 solve2() {
^~~~~~~
/in/foo.cc: In function 'double getAngle(int, int)':
/in/foo.cc:220:6: error: 'st' was not declared in this scope
if (st[l] - st[r] <= 1e-6)
^~
/in/foo.cc:222:16: error: 'f' was not declared in this scope
return double(f[l] - f[r]) / (st[l] - st[r]) ;
^
/in/foo.cc:222:32: error: 'st' was not declared in this scope
return double(f[l] - f[r]) / (st[l] - st[r]) ;
^~
/in/foo.cc: At global scope:
/in/foo.cc:225:1: error: '__int64' does not name a type
__int64 solve1() {
^~~~~~~
/in/foo.cc:251:1: error: '__int64' does not name a type
__int64 solve3() {
^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:266:22: error: 't' was not declared in this scope
scanf("%lld%lld", &t[i], &c[i]) ;
^
/in/foo.cc:266:29: error: 'c' was not declared in this scope
scanf("%lld%lld", &t[i], &c[i]) ;
^
/in/foo.cc:270:3: error: 'st' was not declared in this scope
st[i] = st[i+1] + t[i] ;
^~
/in/foo.cc:270:21: error: 't' was not declared in this scope
st[i] = st[i+1] + t[i] ;
^
/in/foo.cc:271:3: error: 'sc' was not declared in this scope
sc[i] = sc[i+1] + c[i] ;
^~
/in/foo.cc:271:21: error: 'c' was not declared in this scope
sc[i] = sc[i+1] + c[i] ;
^
/in/foo.cc:275:40: error: 'solve1' was not declared in this scope
if (!hasNagi) printf("%lld\n", solve1()) ;
^
/in/foo.cc:276:43: error: 'solve2' was not declared in this scope
else printf("%lld\n", solve2()) ;
^