foo.cc: In function 'int main()':
foo.cc:20:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
~~~~~^~~~~~~~~
foo.cc:22:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&num[i].t);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&num[i].w);
~~~~~^~~~~~~~~~~~~~~~
foo.cc:50:15: warning: 'index' may be used uninitialized in this function [-Wmaybe-uninitialized]
cun[index] = i;
~~~~~~~~~~~^~~
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-06-24T17:05:30.000Z","handle":"2020-06-24T17:05:30.000Z","cache_start":"2020-06-24T17:05:30.006Z","read_cases":"2020-06-24T17:05:30.124Z","judge":"2020-06-24T17:05:30.125Z","done":"2020-06-24T17:05:30.633Z"}