0_0_13562959_8857.cpp:1:554: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/stdio.h>intmai: Invalid argument
#include<stdio.h>intmain(){ int m,n,i,j,t,k; int str[1000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&m); for(j=0;j<m;j++) scanf("%d",&str[j]); for(j=0;j<m-1;j++){ for(t=m-2;t>=j;t--) if(str[t]>str[t+1]){ k=str[t]; str[t]=str[t+1]; str[t+1]=k; } } printf("%d",str[0]); for(j=1;j<m;j++) printf(" %d",str[j]); // 注意不要有行尾空格 printf("\n"); } return 0;}
^
compilation terminated.
|