Problem ballgame
User ThePwo
Submission Time 2025-02-13 11:19:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballgame.cpp: In function ‘void rangeUpdate(int, int, ll)’:
ballgame.cpp:16:9: error: cannot convert ‘ll*’ {aka ‘long long int*’} to ‘int*’
16 | update(ftm, l, k);
| ^~~
| |
| ll* {aka long long int*}
ballgame.cpp:9:18: note: initializing argument 1 of ‘void update(int*, int, ll)’
9 | void update(int *t, int p, ll k) {
| ~~~~~^
ballgame.cpp:17:9: error: cannot convert ‘ll*’ {aka ‘long long int*’} to ‘int*’
17 | update(ftm, r + 1, -k);
| ^~~
| |
| ll* {aka long long int*}
ballgame.cpp:9:18: note: initializing argument 1 of ‘void update(int*, int, ll)’
9 | void update(int *t, int p, ll k) {
| ~~~~~^
ballgame.cpp:18:9: error: cannot convert ‘ll*’ {aka ‘long long int*’} to ‘int*’
18 | update(ftc, l, k * (l - 1));
| ^~~
| |
| ll* {aka long long i