Problem | ballgame |
---|---|
User | PlayVoltz |
Submission Time | 2023-12-12 19:26:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
ballgame.cpp: In function ‘int ballgame(int, int, int, int*, int*)’:
ballgame.cpp:73:53: error: expected ‘;’ before ‘vector’
73 | else sort(vect.begin(), vect.end(), greater<pii>())
| ^
| ;
74 | vector<int> dp(n);
| ~~~~~~
ballgame.cpp:76:23: error: ‘dp’ was not declared in this scope; did you mean ‘d’?
76 | if(vect[i]!=vect[0])dp[i]=st->query(max(1ll, vect[i].second-d), min((int)l, vect[i].second+d));
| ^~
| d
ballgame.cpp:77:8: error: ‘dp’ was not declared in this scope; did you mean ‘d’?
77 | else dp[i]=1;
| ^~
| d
ballgame.cpp:78:3: error: ‘dp’ was not declared in this scope; did you mean ‘d’?
78 | dp[i]%=MOD;
| ^~
| d
ballgam