strange_device.cpp:73:11: error: redefinition of 'const int maxn'
const int maxn = 2e5 + 5;
^~~~
strange_device.cpp:17:11: note: 'const int maxn' previously defined here
const int maxn = 2e5 + 5;
^~~~
strange_device.cpp:74:11: error: redefinition of 'const int mod'
const int mod = 1e9 + 7;
^~~
strange_device.cpp:18:11: note: 'const int mod' previously defined here
const int mod = 1e9 + 7;
^~~
strange_device.cpp:75:5: error: redefinition of 'int n'
int n;
^
strange_device.cpp:19:5: note: 'int n' previously declared here
int n;
^
strange_device.cpp:76:4: error: redefinition of 'll A'
ll A , B;
^
strange_device.cpp:20:4: note: 'll A' previously declared here
ll A , B;
^
strange_device.cpp:76:8: error: redefinition of 'll B'
ll A , B;
^
strange_device.cpp:20:8: note: 'll B' previously declared here
ll A , B;
^
strange_device.cpp:77:10: error: redefinition of 'const ll inf'
const ll inf = (ll)1e18 + 3;
^~~
strange_device.cpp:21:10: note: 'const ll inf' previously defined here
const ll inf = (ll)1e18 + 3;
^~~
strange_device.cpp: In function 'int main()':
strange_device.cpp:79:5: error: redefinition of 'int main()'
int main()
^~~~
strange_device.cpp:23:5: note: 'int main()' previously defined here
int main()
^~~~
strange_device.cpp: In function 'int main()':
strange_device.cpp:28:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(taskname".INP", "r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp:29:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(taskname".OUT", "w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp: In function 'int main()':
strange_device.cpp:84:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(taskname".INP", "r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
strange_device.cpp:85:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(taskname".OUT", "w",stdout);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~