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_30949729_11124.cpp: In function 'int main()':
0_0_30949729_11124.cpp:6:2: error: expected initializer before 'scanf'
  scanf("%d",&n);
  ^
0_0_30949729_11124.cpp:9:13: error: 'n' was not declared in this scope
  for(m=1;m<=n;m++)
             ^
0_0_30949729_11124.cpp:12:8: error: 'a' was not declared in this scope
   gets(a);//get()碰到回车键停止读取,即可以读取除回车外一整行输入值 ,括号里是读取内容 
        ^
0_0_30949729_11124.cpp:16:4: error: expected initializer before 'for'
    for(i=0;i<len;i++)
    ^
0_0_30949729_11124.cpp:16:12: error: 'i' was not declared in this scope
    for(i=0;i<len;i++)
            ^
0_0_30949729_11124.cpp:24:12: error: expected ')' before ':' token
    printf(a:"%d\n",n1);
            ^
0_0_30949729_11124.cpp:25:11: error: 'e' was not declared in this scope
    printf(e:"%d\n",n2);printf(i:"%d\n",n3);printf(o:"%d\n",n4);printf(u:"%d\n",n5);
           ^
0_0_30949729_11124.cpp:25:32: error: expected ')' before ':' token
    printf(e:"%d\n",n2);printf(i:"%d\n",n3);printf(o:"%d\n",n4);printf(u:"%d\n",n5);
                                ^
0_0_30949729_11124.cpp:25:51: error: 'o' was not declared in this scope
    printf(e:"%d\n",n2);printf(i:"%d\n",n3);printf(o:"%d\n",n4);printf(u:"%d\n",n5);
                                                   ^
0_0_30949729_11124.cpp:25:71: error: 'u' was not declared in this scope
    printf(e:"%d\n",n2);printf(i:"%d\n",n3);printf(o:"%d\n",n4);printf(u:"%d\n",n5);
                                                                       ^


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-05 10:15:41, Gzip enabled