Problem trainorbus
User Red123
Submission Time 2025-03-13 22:39:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:9:5: error: expected ‘;’ before ‘a’
9 | cin a;
| ^~
| ;
trainorbus.cpp:10:10: error: expected initializer before numeric constant
10 | int arr 1[a];
| ^
trainorbus.cpp:11:10: error: expected initializer before numeric constant
11 | int arr 2[a];
| ^
trainorbus.cpp:13:10: error: ‘arr’ was not declared in this scope
13 | cin >> arr 1[i];
| ^~~
trainorbus.cpp:15:24: error: ‘i’ was not declared in this scope
15 | for(int j = 0; j < a; i++){
| ^
trainorbus.cpp:16:10: error: ‘arr’ was not declared in this scope
16 | cin >> arr 2[j];
| ^~~
trainorbus.cpp:19:15: error: ‘arr’ was not declared in this scope
19 | int g = max(arr 1[i], arr 2[j]);
| ^~~
trainorbus.cpp:19:28: error: expected ‘)’ before