Problem foreveralone
User LeoYoungLion
Submission Time 2026-11-13 15:36:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foreveralone.cpp:5:1: error: expected initializer before ‘int’
5 | int n, m;
| ^~~
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:8:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n >> m;
| ^
| yn
foreveralone.cpp:8:14: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
8 | cin >> n >> m;
| ^
| tm
foreveralone.cpp:13:4: error: ‘a’ was not declared in this scope
13 | a[start]++;
| ^
foreveralone.cpp:19:7: error: ‘a’ was not declared in this scope
19 | if (a[i] == 0){
| ^