fangorn.cpp: In function 'vi getSeq(int, int)':
fangorn.cpp:39:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < rDif.size(); i++) {
^
fangorn.cpp:59:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < lDif.size(); i++) {
^
fangorn.cpp: In function 'int main(int, char**)':
fangorn.cpp:111:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < ans.size(); i++) {
^
fangorn.cpp:86:30: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input", "r", stdin);
^
fangorn.cpp:87:32: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("output", "w", stdout);
^
fangorn.cpp:89:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &W, &H);
^
fangorn.cpp:90:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &xg, &yg);
^
fangorn.cpp:91:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &C);
^
fangorn.cpp:94:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &(camps[i].first), &(camps[i].second));
^
fangorn.cpp:96:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
fangorn.cpp:99:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &(trees[i].first), &(trees[i].second));
^