F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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.


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 12:39:02, Gzip enabled