Problem snack
User ultbiaslia
Submission Time 2023-11-10 09:47:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp:24:27: error: missing terminating ' character
24 | cout << s[b] - ss[a-1] <<'n\';
| ^~~~~
snack.cpp:2:20: error: expected ‘;’ before ‘int32_t’
2 | using namespace std
| ^
| ;
......
5 | int32_t main()
| ~~~~~~~
snack.cpp: In function ‘int32_t main()’:
snack.cpp:15:16: error: expected ‘;’ before ‘long’
15 | cin >> arr[i]
| ^
| ;
snack.cpp:18:2: error: ‘s’ was not declared in this scope; did you mean ‘ss’?
18 | s[0] =0;
| ^
| ss
snack.cpp:23:9: error: ‘a’ was not declared in this scope
23 | cin >> a >> b;
| ^
snack.cpp:23:14: error: ‘b’ was not declared in this scope
23 | cin >> a >> b;
| ^
snack.cpp:27:1: error: expected primary-expression before