Problem robotonring1
User Nayaa2403
Submission Time 2026-10-31 12:40:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robotonring1.cpp:3:5: error: ‘cin’ does not name a type
3 | cin >> n >> m;
| ^~~
robotonring1.cpp:4:14: error: array bound is not an integer constant before ‘]’ token
4 | int arr[n];
| ^
robotonring1.cpp:5:5: error: expected unqualified-id before ‘for’
5 | for (int i=0; i<n; i++){
| ^~~
robotonring1.cpp:5:19: error: ‘i’ does not name a type
5 | for (int i=0; i<n; i++){
| ^
robotonring1.cpp:5:24: error: ‘i’ does not name a type
5 | for (int i=0; i<n; i++){
| ^
robotonring1.cpp:9:5: error: ‘cin’ does not name a type
9 | cin >> B;
| ^~~
robotonring1.cpp:10:5: error: ‘vector’ does not name a type
10 | vector<int> vect;
| ^~~~~~
robotonring1.cpp:12:5: error: expected unqualified-id before ‘for’
12 | for (int i=0; i<n; i