foo.c: In function 'MoveLeft':
foo.c:17:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(k=0)
^
foo.c: In function 'main':
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^~~~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^~~~~~~~~~~~~~~~~
foo.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务