0_0_30703780_12613.cpp:1:509: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdio.h>voi: Invalid argument
#include<stdio.h>void main(){ int x[100],n,mark,m,i; int judge; while(scanf("%d%d",&n,&m)!=EOF&&n||m) { judge=0; for(i=1;i<=n;i++) { scanf("%d",&x[i]); } for(i=1;i<=n;i++) { if(m<x[i]) { mark=i; judge=judge+1; break; } } if(judge!=0) { for(i=n;i>=mark;i--) { x[i+1]=x[i]; } x[mark]=m; for(i=1;i<=n+1;i++) { if(i!=n+1) printf("%d ",x[i]); else printf("%d\n",x[i]); } } else { for(i=1;i<=n;i++) { printf("%d ",x[i]); } printf("%d\n",m); } } }
^
compilation terminated.
|