Problem trainorbus
User qifengle
Submission Time 2025-03-12 19:03:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp:5:5: error: storage size of ‘a’ isn’t known
5 | int a[], b[];
| ^
trainorbus.cpp:5:10: error: storage size of ‘b’ isn’t known
5 | int a[], b[];
| ^
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:9:10: error: expected unqualified-id before ‘=’ token
9 | for(int = 0; i < x; i++){
| ^
trainorbus.cpp:9:9: error: expected ‘;’ before ‘=’ token
9 | for(int = 0; i < x; i++){
| ^~
| ;
trainorbus.cpp:9:10: error: expected primary-expression before ‘=’ token
9 | for(int = 0; i < x; i++){
| ^
trainorbus.cpp:9:15: error: ‘i’ was not declared in this scope
9 | for(int = 0; i < x; i++){
| ^
trainorbus.cpp:9:20: error: expected ‘)’ before ‘;’ token
9 | for(int = 0; i < x; i++){
| ~ ^
| )
trainorbus.cpp:9:22: er