nicegift.cpp: In function 'void fun(long long int)':
nicegift.cpp:28:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for (i=0;i<g[x.sc].size();++i){
| ~^~~~~~~~~~~~~~~
nicegift.cpp:20:11: warning: unused variable 'j' [-Wunused-variable]
20 | int i,j,k;
| ^
nicegift.cpp:20:13: warning: unused variable 'k' [-Wunused-variable]
20 | int i,j,k;
| ^
nicegift.cpp: At global scope:
nicegift.cpp:38:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
38 | main(){
| ^
nicegift.cpp: In function 'int main()':
nicegift.cpp:60:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<std::pair<std::pair<long long int, long long int>, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
60 | for (i=0;i<v.size();++i){
| ~^~~~~~~~~
nicegift.cpp:39:15: warning: unused variable 'j' [-Wunused-variable]
39 | int n,k,i,j;
| ^
nicegift.cpp:10:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
10 | #define scan2(a,b) scanf("%lld %lld",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
nicegift.cpp:42:5: note: in expansion of macro 'scan2'
42 | scan2(n,k)
| ^~~~~
nicegift.cpp:9:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
9 | #define scan1(a) scanf("%lld",&a);
| ~~~~~^~~~~~~~~~~
nicegift.cpp:45:9: note: in expansion of macro 'scan1'
45 | scan1(x)
| ^~~~~