Problem | trainorbus |
---|---|
User | ilovepythonandhatecplusplus |
Submission Time | 2025-02-23 11:30:36 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
trainorbus.cpp:27:3: error: ‘cin’ does not name a type; did you mean ‘sin’?
27 | } cin>>n;
| ^~~
| sin
trainorbus.cpp:28:2: error: ‘total’ does not name a type
28 | total=0;
| ^~~~~
trainorbus.cpp:29:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
29 | int train[n];
| ^
| yn
trainorbus.cpp:30:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
30 | int bus[n];
| ^
| yn
trainorbus.cpp:32:2: error: expected unqualified-id before ‘for’
32 | for (int i=0;i<n;i++){
| ^~~
trainorbus.cpp:32:15: error: ‘i’ does not name a type
32 | for (int i=0;i<n;i++){
| ^
trainorbus.cpp:32:19: error: ‘i’ does not name a type
32 | for (int i=0;i<n;i++){
| ^
trainorbus.cpp:34:3: error: expected unqualified-id before ‘for’
34