Problem lostarray
User thatsmycroissant
Submission Time 2024-01-09 22:34:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lostarray.cpp: In function ‘int main()’:
lostarray.cpp:9:7: error: ‘n’ was not declared in this scope
9 | cin>>n>>m;
| ^
lostarray.cpp:9:10: error: ‘m’ was not declared in this scope
9 | cin>>n>>m;
| ^
lostarray.cpp:13:8: error: ‘a’ was not declared in this scope
13 | cin>>a>>b>>c;
| ^
lostarray.cpp:13:11: error: ‘b’ was not declared in this scope
13 | cin>>a>>b>>c;
| ^
lostarray.cpp:13:14: error: ‘c’ was not declared in this scope
13 | cin>>a>>b>>c;
| ^
lostarray.cpp:20:23: error: expected ‘;’ before ‘}’ token
20 | else cout<<x[i]<<' '
| ^
| ;
21 | }
| ~