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

Compile Error

trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:7:9: error: ‘i’ was not declared in this scope
7 | cin >> i;
| ^
trainorbus.cpp:10:10: error: ‘a’ was not declared in this scope
10 | cin >> a[n];
| ^
trainorbus.cpp:12:10: error: ‘b’ was not declared in this scope
12 | cin >> b[n];
| ^
trainorbus.cpp:14:12: error: ‘a’ was not declared in this scope
14 | t +- min(a[n],b[n]);
| ^
trainorbus.cpp:14:17: error: ‘b’ was not declared in this scope
14 | t +- min(a[n],b[n]);
| ^