Problem deliveroo
User Pan
Submission Time 2023-11-26 19:18:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

deliveroo.cpp: In function ‘int32_t main()’:
deliveroo.cpp:8:13: error: declaration does not declare anything [-fpermissive]
8 | #define int int;
| ^~~
deliveroo.cpp:14:2: note: in expansion of macro ‘int’
14 | int n;
| ^~~
deliveroo.cpp:14:6: error: ‘n’ was not declared in this scope
14 | int n;
| ^
deliveroo.cpp:8:13: error: declaration does not declare anything [-fpermissive]
8 | #define int int;
| ^~~
deliveroo.cpp:16:2: note: in expansion of macro ‘int’
16 | int d[n+1], c[n+1];
| ^~~
deliveroo.cpp:16:6: error: ‘d’ was not declared in this scope
16 | int d[n+1], c[n+1];
| ^
deliveroo.cpp:16:14: error: ‘c’ was not declared in this scope
16 | int d[n+1], c[n+1];
| ^
deliveroo.cpp:8:13: error: wrong number of template arguments (1, should be 2)
8 | #define int int;
| ^~~
d