0_0_13778420_10654.cpp: In function 'void push_up(int)':
0_0_13778420_10654.cpp:57:17: error: 'mod' was not declared in this scope
if(sum[pos] >= mod) sum[pos] -= mod;
^
0_0_13778420_10654.cpp: In function 'int main()':
0_0_13778420_10654.cpp:112:14: error: 'mod' was not declared in this scope
if(ans >= mod) ans -= mod;
^
0_0_13778420_10654.cpp:115:16: error: too few arguments to function 'void update(int, int, int, int, int)'
update(l,r,1);
^
0_0_13778420_10654.cpp:73:6: note: declared here
void update(int l_aim,int r_aim,int l,int r,int pos){
^
0_0_13778420_10654.cpp: In instantiation of 'void pt(T) [with T = const char*]':
0_0_13778420_10654.cpp:114:9: required from here
0_0_13778420_10654.cpp:44:7: error: wrong type argument to unary minus
x = -x;
^
0_0_13778420_10654.cpp:46:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x > 9) pt(x / 10);
^
0_0_13778420_10654.cpp:46:17: error: invalid operands of types 'const char*' and 'int' to binary 'operator/'
if(x > 9) pt(x / 10);
^
0_0_13778420_10654.cpp:47:12: error: invalid operands of types 'const char*' and 'int' to binary 'operator%'
putchar(x % 10 + '0');
^
|