foo.cc: In function 'int money(int, int, bool, bool, int)':
foo.cc:11:12: warning: comparison of constant '85' with boolean expression is always false [-Wbool-compare]
if (xb > 85 && xb)sum += 850;
~~~^~~~
foo.cc: In function 'int main()':
foo.cc:17:34: warning: unused variable 'ans2' [-Wunused-variable]
int N, sum=0,mon[101], ans1, ans2,id=0;
^~~~
foo.cc:28:10: warning: 'mon[0]' may be used uninitialized in this function [-Wmaybe-uninitialized]
ans1 = mon[0];
~~~~~^~~~~~~~
自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-07-18T22:13:46.791Z","handle":"2020-07-18T22:13:46.792Z","cache_start":"2020-07-18T22:13:46.799Z","read_cases":"2020-07-18T22:13:46.974Z","judge":"2020-07-18T22:13:46.975Z","done":"2020-07-18T22:13:47.367Z"}