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_17511725_23941.cpp:2:14: error: 'M' was not declared in this scope
 int a ,b,n,j[M],i;
              ^
0_0_17511725_23941.cpp:4:6: error: expected constructor, destructor, or type conversion before '(' token
 scanf("%d%d",&a,&b); //printf("%d %d",a,b); j[i]=a+b; }
      ^
0_0_17511725_23941.cpp:5:1: error: 'i' does not name a type
 i=0;
 ^
0_0_17511725_23941.cpp:6:1: error: expected unqualified-id before 'while'
 while(i<n) {
 ^
0_0_17511725_23941.cpp:8:17: error: expected declaration before '}' token
 printf("\n"); } }
                 ^


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-09-29 09:20:45, Gzip enabled