foo.cc: In function 'void deal(double)':
foo.cc:102:50: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
if ((ch[i] != '0' && ch[i] != '.') | sum > 0)
~~~~^~~
foo.cc: In function 'int main()':
foo.cc:125:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf", &a[i]);
~~~~~^~~~~~~~~~~~~~
foo.cc:128:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~
foo.cc:134:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
~~~~~^~~~~~~~~~
foo.cc:143:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf%d", &x1, &y1);
~~~~~^~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。