foo.cc:77:29: error: stray '#' in program
read(l);read(r);#include<cstdio>
^
foo.cc: In member function 'void tree::add(int, int, int, ll)':
foo.cc:61:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (l<=m) add(p<<1,l,r,c);if (r>m) add(p<<1|1,l,r,c);
^~
foo.cc:61:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (l<=m) add(p<<1,l,r,c);if (r>m) add(p<<1|1,l,r,c);
^~
foo.cc: In function 'int main()':
foo.cc:77:30: error: 'include' was not declared in this scope
read(l);read(r);#include<cstdio>
^~~~~~~
foo.cc:77:38: error: 'cstdio' was not declared in this scope
read(l);read(r);#include<cstdio>
^~~~~~
foo.cc:77:38: note: suggested alternative: 'stdin'
read(l);read(r);#include<cstdio>
^~~~~~
stdin
foo.cc:80:1: error: expected primary-expression before 'using'
using namespace std;
^~~~~
foo.cc:84:1: error: a template declaration cannot appear at block scope
template<typename T>
^~~~~~~~
foo.cc: In member function 'void main()::tree::add(int, int, int, ll)':
foo.cc:137:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (l<=m) add(p<<1,l,r,c);if (r>m) add(p<<1|1,l,r,c);
^~
foo.cc:137:35: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if (l<=m) add(p<<1,l,r,c);if (r>m) add(p<<1|1,l,r,c);
^~
foo.cc: In function 'int main()':
foo.cc:141:11: error: a function-definition is not allowed here before '{' token
int main(){
^
[Hydro](https://hydro.ac)提供评测服务