Problem feast
User chenweilian
Submission Time 2023-03-22 22:26:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feast.cpp:82:11: error: redefinition of ‘const int MAXN’
82 | const int MAXN = 3e5 + 5;
| ^~~~
feast.cpp:14:11: note: ‘const int MAXN’ previously defined here
14 | const int MAXN = 3e5 + 5;
| ^~~~
feast.cpp:83:17: error: redefinition of ‘const long long int INF’
83 | const long long INF = 1e18 + 7;
| ^~~
feast.cpp:15:17: note: ‘const long long int INF’ previously defined here
15 | const long long INF = 1e18 + 7;
| ^~~
feast.cpp:85:5: error: redefinition of ‘int N’
85 | int N, K, M = 0, L[MAXN], R[MAXN];
| ^
feast.cpp:17:5: note: ‘int N’ previously declared here
17 | int N, K, M = 0, L[MAXN], R[MAXN];
| ^
feast.cpp:85:8: error: redefinition of ‘int K’
85 | int N, K, M = 0, L[MAXN], R[MAXN];
| ^
feast.cpp:17:8: note: ‘int K’ previously declared here
17 | int N, K, M = 0, L[MAXN], R[MAXN];