Problem ballgame
User PlayVoltz
Submission Time 2023-12-12 23:25:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballgame.cpp: In function ‘void up(long long int, long long int)’:
ballgame.cpp:24:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
24 | while (index<=n){
| ^
| yn
ballgame.cpp: In function ‘void query(long long int, long long int)’:
ballgame.cpp:31:42: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
31 | return (ftsum(right)-ftsum(left-1)+MOD)%MOD;
| ^~~
ballgame.cpp: In function ‘int ballgame(int, int, int, int*, int*)’:
ballgame.cpp:49:14: error: void value not ignored as it ought to be
49 | dp[i]=query(low, high);
| ~~~~~^~~~~~~~~~~