Problem waterbomb
User Yichen
Submission Time 2025-11-25 20:37:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbomb.cpp: In function ‘int main()’:
waterbomb.cpp:7:5: error: ‘ll’ was not declared in this scope
7 | ll n, d;
| ^~
waterbomb.cpp:8:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n >> d;
| ^
| yn
waterbomb.cpp:8:17: error: ‘d’ was not declared in this scope
8 | cin >> n >> d;
| ^
waterbomb.cpp:10:14: error: template argument 2 is invalid
10 | vector<ll> ppl(n);
| ^
waterbomb.cpp:12:12: error: expected ‘;’ before ‘i’
12 | for (ll i = 1; i <= n; i++) {
| ^~
| ;
waterbomb.cpp:12:20: error: ‘i’ was not declared in this scope
12 | for (ll i = 1; i <= n; i++) {
| ^
waterbomb.cpp:16:5: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | ans = LLONG