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_16985339_25519.c: In function 'main':
0_0_16985339_25519.c:2:7: error: expected declaration specifiers before '&' token
 main() 
       ^
0_0_16985339_25519.c:2:8: error: stray '#' in program
 main() 
        ^
0_0_16985339_25519.c:3:3: error: stray '#' in program
 { 
   ^
0_0_16985339_25519.c:3:2: error: lvalue required as unary '&' operand
 { 
  ^
0_0_16985339_25519.c:4:4: error: expected identifier or '(' before '&' token
 int a,b; 
    ^
0_0_16985339_25519.c:4:5: error: stray '#' in program
 int a,b; 
     ^
0_0_16985339_25519.c:4:10: error: 'a' undeclared (first use in this function)
 int a,b; 
          ^
0_0_16985339_25519.c:4:10: note: each undeclared identifier is reported only once for each function it appears in
0_0_16985339_25519.c:4:12: error: 'b' undeclared (first use in this function)
 int a,b; 
            ^
0_0_16985339_25519.c:4:15: error: stray '#' in program
 int a,b; 
               ^
0_0_16985339_25519.c:4:14: error: lvalue required as unary '&' operand
 int a,b; 
              ^
0_0_16985339_25519.c:5:33: error: stray '#' in program
 while(scanf("%d%d",&a,&b)!=EOF) 
                                 ^
0_0_16985339_25519.c:5:32: error: lvalue required as unary '&' operand
 while(scanf("%d%d",&a,&b)!=EOF) 
                                ^
0_0_16985339_25519.c:6:21: error: stray '#' in program
 printf("%d\n",a+b); 
                     ^
0_0_16985339_25519.c:6:20: error: lvalue required as unary '&' operand
 printf("%d\n",a+b); 
                    ^


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 03:28:12, Gzip enabled