Problem trainorbus
User Migogoh10
Submission Time 2026-03-25 17:21:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp:6:8: error: array bound is not an integer constant before ‘]’ token
6 | int a[i],b[i];
| ^
trainorbus.cpp:6:13: error: array bound is not an integer constant before ‘]’ token
6 | int a[i],b[i];
| ^
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:10:10: error: ‘a’ was not declared in this scope
10 | cin >> a[i];
| ^
trainorbus.cpp:12:10: error: ‘b’ was not declared in this scope
12 | cin >> b[i];
| ^
trainorbus.cpp:14:11: error: ‘a’ was not declared in this scope
14 | t+- min(a[i],b[i]);
| ^
trainorbus.cpp:14:16: error: ‘b’ was not declared in this scope
14 | t+- min(a[i],b[i]);
| ^