Problem buffet
User r1r2r3r4
Submission Time 2025-07-02 16:03:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

buffet.cpp: In function ‘int main()’:
buffet.cpp:10:41: error: expected ‘;’ before ‘l’
10 | for (int i=0; i<n; i++) cin >> t2[i]l
| ^
| ;
buffet.cpp:14:9: error: ‘a1’ was not declared in this scope; did you mean ‘a2’?
14 | a1 = max(a1+t1[i], a1+t2[i]-k)
| ^~
| a2
buffet.cpp:17:17: error: ‘a1’ was not declared in this scope; did you mean ‘a2’?
17 | cout << max(a1, a2);
| ^~
| a2