vjestica.cpp:64:11: error: redefinition of 'const int mod'
64 | const int mod = 1e9 + 7;
| ^~~
vjestica.cpp:4:11: note: 'const int mod' previously defined here
4 | const int mod = 1e9 + 7;
| ^~~
vjestica.cpp:68:5: error: redefinition of 'int main()'
68 | int main() {
| ^~~~
vjestica.cpp:8:5: note: 'int main()' previously defined here
8 | int main() {
| ^~~~
vjestica.cpp: In function 'int main()':
vjestica.cpp:10:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen(taskname".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vjestica.cpp:11:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | freopen(taskname".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vjestica.cpp: In function 'int main()':
vjestica.cpp:70:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
70 | freopen(taskname".inp", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vjestica.cpp:71:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
71 | freopen(taskname".out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~