foo.c: In function 'main':
foo.c:38:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
if(i==2)
^
foo.c:51:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(c=2)
^
foo.c:14:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&a,&b,&c);
^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:15:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&e,&f,&g);
^~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:61:15: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d",x+y+z);
~^~
[Hydro](https://hydro.ac)提供评测服务