blocks.cpp:57:5: error: redefinition of 'int n'
57 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:12:5: note: 'int n' previously declared here
12 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:57:8: error: redefinition of 'int k'
57 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:12:8: note: 'int k' previously declared here
12 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:57:11: error: redefinition of 'int a [1000005]'
57 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:12:11: note: 'int a [1000005]' previously declared here
12 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:57:17: error: redefinition of 'int f [105][1000005]'
57 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:12:17: note: 'int f [105][1000005]' previously declared here
12 | int n, k, a[N], f[105][N], top;
| ^
blocks.cpp:57:28: error: redefinition of 'int top'
57 | int n, k, a[N], f[105][N], top;
| ^~~
blocks.cpp:12:28: note: 'int top' previously declared here
12 | int n, k, a[N], f[105][N], top;
| ^~~
blocks.cpp:59:8: error: redefinition of 'struct pii'
59 | struct pii {
| ^~~
blocks.cpp:14:8: note: previous definition of 'struct pii'
14 | struct pii {
| ^~~
blocks.cpp:61:3: error: conflicting declaration 'int q [1000005]'
61 | } q[N];
| ^
blocks.cpp:16:3: note: previous declaration as 'pii q [1000005]'
16 | } q[N];
| ^
blocks.cpp:63:5: error: redefinition of 'int main()'
63 | int main()
| ^~~~
blocks.cpp:18:5: note: 'int main()' previously defined here
18 | int main()
| ^~~~
blocks.cpp: In function 'int main()':
blocks.cpp:22:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
22 | freopen(VanLoi".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
blocks.cpp:23:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
23 | freopen(VanLoi".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~