| Problem | trainorbus |
|---|---|
| User | NikhilSiddharth67 |
| Submission Time | 2026-03-25 16:47:08 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:9:13: error: expected initializer before ‘a’
9 | int arr a[n], b[n];
| ^
trainorbus.cpp:12:16: error: ‘a’ was not declared in this scope
12 | cin >> a[i];
| ^
trainorbus.cpp:15:16: error: ‘b’ was not declared in this scope
15 | cin >> b[i];
| ^
trainorbus.cpp:20:22: error: ‘a’ was not declared in this scope
20 | total += min(a[i], b[i]);
| ^
trainorbus.cpp:20:28: error: ‘b’ was not declared in this scope
20 | total += min(a[i], b[i]);
| ^