| Problem | snacks |
|---|---|
| User | dumbfounded47 |
| Submission Time | 2026-02-17 23:04:01 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
snacks.cpp: In function ‘int main()’:
snacks.cpp:5:7: error: ‘sync_with_studio’ is not a member of ‘std::ios’ {aka ‘std::basic_ios<char>’}
5 | ios::sync_with_studio(false);
| ^~~~~~~~~~~~~~~~
snacks.cpp:22:26: error: ‘r’ was not declared in this scope
22 | for (int l = L[i]; l < r + 1; l++){
| ^
snacks.cpp:24:15: error: expected ‘;’ before ‘}’ token
24 | S[l] = C[i]
| ^
| ;
25 | }
| ~
snacks.cpp:26:13: error: ‘r’ was not declared in this scope
26 | total += (r - l + 1) * C[i];
| ^
snacks.cpp:26:17: error: ‘l’ was not declared in this scope
26 | total += (r - l + 1) * C[i];
| ^