| Problem | snacks |
|---|---|
| User | Usu |
| Submission Time | 2026-01-21 20:08:21 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
snacks.cpp: In function ‘int main()’:
snacks.cpp:16:5: error: expected unqualified-id before ‘for’
16 | for (int i=0;i<n;i++){
| ^~~
snacks.cpp:16:18: error: ‘i’ was not declared in this scope
16 | for (int i=0;i<n;i++){
| ^
snacks.cpp:23:14: error: ‘l’ was not declared in this scope
23 | cin>>l>>r>>x;
| ^
snacks.cpp:23:17: error: ‘r’ was not declared in this scope
23 | cin>>l>>r>>x;
| ^
snacks.cpp:23:20: error: ‘x’ was not declared in this scope
23 | cin>>l>>r>>x;
| ^
snacks.cpp:24:3: error: ‘sm’ was not declared in this scope; did you mean ‘sum’?
24 | sm=0;cnt=0;
| ^~
| sum
snacks.cpp:24:8: error: ‘cnt’ was not declared in this scope; did you mean ‘int’?
24 | sm=0;cnt=0;
| ^~~