Problem waterbottles3
User usernamehere
Submission Time 2024-12-19 14:57:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

waterbottles3.cpp: In function ‘int main()’:
waterbottles3.cpp:4:2: error: ‘ll’ was not declared in this scope
4 | ll n,q,x;
| ^~
waterbottles3.cpp:5:7: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
5 | cin>>n>>q>>x;
| ^
| yn
waterbottles3.cpp:5:10: error: ‘q’ was not declared in this scope
5 | cin>>n>>q>>x;
| ^
waterbottles3.cpp:5:13: error: ‘x’ was not declared in this scope
5 | cin>>n>>q>>x;
| ^
waterbottles3.cpp:6:4: error: expected ‘;’ before ‘i’
6 | ll i,w[n],s=0;
| ^~
| ;
waterbottles3.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i=0; i<n; i++) {
| ^
waterbottles3.cpp:8:8: error: ‘w’ was not declared in this scope
8 | cin>>w[i];
| ^
waterbottles3.cpp:10:3: error: ‘s’ was not