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

Compile Error

buffet.cpp: In function ‘int main()’:
buffet.cpp:2:13: error: ‘ll’ was not declared in this scope
2 | #define int ll
| ^~
buffet.cpp:6:5: note: in expansion of macro ‘int’
6 | int n, k;
| ^~~
buffet.cpp:7:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | cin >> n >> k;
| ^
| yn
buffet.cpp:7:17: error: ‘k’ was not declared in this scope
7 | cin >> n >> k;
| ^
buffet.cpp:8:9: error: expected ‘;’ before ‘t1’
8 | int t1[n];
| ^~
buffet.cpp:9:9: error: expected ‘;’ before ‘t2’
9 | int t2[n];
| ^~
buffet.cpp:10:14: error: expected ‘;’ before ‘i’
10 | for (int i=0; i<n; i++) cin >> t1[i];
| ^
buffet.cpp:10:19: error: ‘i’ was not declared in this scope
10 | for (int i=0; i<n; i++) c