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

Compile Error

trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:19:17: error: ‘i’ was not declared in this scope
19 | int p = max(t[i], g[j]);
| ^
trainorbus.cpp:19:23: error: ‘j’ was not declared in this scope
19 | int p = max(t[i], g[j]);
| ^
trainorbus.cpp:20:9: error: expected initializer before ‘+=’ token
20 | int z += p;
| ^~
trainorbus.cpp:22:10: error: ‘z’ was not declared in this scope
22 | cout << z;
| ^