foo.cc: In function 'int main()':
foo.cc:49:13: warning: unused variable 'maxn' [-Wunused-variable]
long long maxn = a[i].num;
^~~~
foo.cc:38:12: warning: unused variable 'sum' [-Wunused-variable]
long long sum = 0;
^~~
foo.cc:53:24: warning: 'tmp2' may be used uninitialized in this function [-Wmaybe-uninitialized]
else ans -= (a[tmp2].k * 2), tmp2 = tmp, temp = a[tmp].k, ans += a[tmp].f;
~~~~~~~~^
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-10T03:29:31.655Z","handle":"2020-07-10T03:29:31.655Z","cache_start":"2020-07-10T03:29:31.685Z","read_cases":"2020-07-10T03:29:33.733Z","judge":"2020-07-10T03:29:33.733Z","done":"2020-07-10T03:29:34.851Z"}