jobs.cpp: In function 'int main()':
jobs.cpp:61:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
61 | for (auto k:v) cout<<k.f<<" "; cout<<'\n';
| ^~~
jobs.cpp:61:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
61 | for (auto k:v) cout<<k.f<<" "; cout<<'\n';
| ^~~~
jobs.cpp: In function 'void setIO(std::string)':
jobs.cpp:14:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
14 | freopen((name + ".in").c_str(), "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jobs.cpp:15:10: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | freopen((name + ".out").c_str(), "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jobs.cpp: In function 'int main()':
jobs.cpp:74:13: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
74 | cout<<ans<<"\n";
| ^~~~