traffic.cpp: In function 'int LocateCentre(int, int*, int*, int*)':
traffic.cpp:39:9: warning: variable 'sol' set but not used [-Wunused-but-set-variable]
39 | int sol = 0;
| ^~~
traffic.cpp:49:1: warning: no return statement in function returning non-void [-Wreturn-type]
49 | }
| ^
traffic.cpp: In function 'void setIO(std::string)':
traffic.cpp:19:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | freopen((name+".in").c_str(), "r", stdin); // see /general/io
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
traffic.cpp:20:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | freopen((name+".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~