fountain.cpp: In function 'int solvesort(int, int)':
fountain.cpp:11:9: warning: unused variable 'ans' [-Wunused-variable]
11 | int ans = i;
| ^~~
fountain.cpp: In function 'void solveqn()':
fountain.cpp:53:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
53 | scanf("%d%d", &a,&b);
| ~~~~~^~~~~~~~~~~~~~~
fountain.cpp: In function 'int main()':
fountain.cpp:66:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
66 | scanf("%d%d",&N,&Q);
| ~~~~~^~~~~~~~~~~~~~
fountain.cpp:68:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
68 | scanf("%d%d",&T[i].X, &T[i].Y);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
fountain.cpp:76:18: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
76 | scanf("%d%d",&a,&b);
| ~~~~~^~~~~~~~~~~~~~