apple.cpp: In member function 'void Vertex::propagate()':
apple.cpp:10:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
10 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp:10:37: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
10 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp: In member function 'void Vertex::upd(int, int)':
apple.cpp:22:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
22 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp:22:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
22 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp: In member function 'int Vertex::qry(int, int)':
apple.cpp:31:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
31 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp:31:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
31 | if(!l) l = new Vertex(low, mid); if(!r) r = new Vertex(mid+1, high);
| ^~
apple.cpp: In function 'int main()':
apple.cpp:36:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
36 | int q, c = 0; scanf("%d", &q);
| ~~~~~^~~~~~~~~~
apple.cpp:39:21: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | int t, x, y; scanf("%d %d %d", &t, &x, &y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~