Problem trainorbus
User hitarthdangra
Submission Time 2026-02-20 02:08:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:30:30: error: expected ‘;’ before ‘}’ token
30 | total += train[i]
| ^
| ;
31 | } else {
| ~
trainorbus.cpp:32:28: error: expected ‘;’ before ‘}’ token
32 | total += bus[i]
| ^
| ;
33 | }
| ~