Problem trainorbus
User Memeathon
Submission Time 2025-03-17 14:00:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

trainorbus.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
2 | #include maxn 10
| ^~~~
trainorbus.cpp:5:10: error: ‘maxn’ was not declared in this scope
5 | int n, a[maxn], b, ans=0;
| ^~~~
trainorbus.cpp: In function ‘int main()’:
trainorbus.cpp:8:33: error: ‘a’ was not declared in this scope
8 | for (int i=0; i<n; i++) cin >> a[i];
| ^
trainorbus.cpp:11:12: error: ‘a’ was not declared in this scope
11 | ans+=min(a, b);
| ^