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

Compile Error

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