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_18385035_22120.cpp:2:2: error: stray '#' in program
  int main()
  ^
0_0_18385035_22120.cpp:2:11: error: stray '#' in program
  int main()
           ^
0_0_18385035_22120.cpp:3:3: error: stray '#' in program
 { 
   ^
0_0_18385035_22120.cpp:4:2: error: stray '#' in program
     int a,b;
  ^
0_0_18385035_22120.cpp:4:8: error: stray '#' in program
     int a,b;
        ^
0_0_18385035_22120.cpp:4:14: error: stray '#' in program
     int a,b;
              ^
0_0_18385035_22120.cpp:4:20: error: stray '#' in program
     int a,b;
                    ^
0_0_18385035_22120.cpp:4:29: error: stray '#' in program
     int a,b;
                             ^
0_0_18385035_22120.cpp:5:11: error: stray '#' in program
     while (scanf("%d %d",&a,&b)==2)
           ^
0_0_18385035_22120.cpp:6:2: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
  ^
0_0_18385035_22120.cpp:6:8: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
        ^
0_0_18385035_22120.cpp:6:35: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
                                   ^
0_0_18385035_22120.cpp:6:41: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
                                         ^
0_0_18385035_22120.cpp:6:53: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
                                                     ^
0_0_18385035_22120.cpp:6:61: error: stray '#' in program
     printf("%d\n",a+b);  return 0; 
                                                             ^
0_0_18385035_22120.cpp:2:3: error: expected unqualified-id before numeric constant
  int main()
   ^
0_0_18385035_22120.cpp:2:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_18385035_22120.cpp:2:12: error: expected unqualified-id before numeric constant
  int main()
            ^
0_0_18385035_22120.cpp:2:12: error: expected initializer before numeric constant
0_0_18385035_22120.cpp: In function 'int main()':
0_0_18385035_22120.cpp:3:4: error: lvalue required as unary '&' operand
 { 
    ^
0_0_18385035_22120.cpp:4:3: error: lvalue required as unary '&' operand
     int a,b;
   ^
0_0_18385035_22120.cpp:4:9: error: lvalue required as unary '&' operand
     int a,b;
         ^
0_0_18385035_22120.cpp:4:15: error: lvalue required as unary '&' operand
     int a,b;
               ^
0_0_18385035_22120.cpp:4:21: error: lvalue required as unary '&' operand
     int a,b;
                     ^
0_0_18385035_22120.cpp:4:30: error: expected unqualified-id before numeric constant
     int a,b;
                              ^
0_0_18385035_22120.cpp:4:30: error: expected initializer before numeric constant
0_0_18385035_22120.cpp:4:34: error: 'a' was not declared in this scope
     int a,b;
                                  ^
0_0_18385035_22120.cpp:4:36: error: 'b' was not declared in this scope
     int a,b;
                                    ^
0_0_18385035_22120.cpp:5:10: error: expected '(' before '&' token
     while (scanf("%d %d",&a,&b)==2)
          ^
0_0_18385035_22120.cpp:5:12: error: lvalue required as unary '&' operand
     while (scanf("%d %d",&a,&b)==2)
            ^
0_0_18385035_22120.cpp:5:15: error: expected ')' before ';' token
     while (scanf("%d %d",&a,&b)==2)
               ^
0_0_18385035_22120.cpp:6:9: error: lvalue required as unary '&' operand
     printf("%d\n",a+b);  return 0; 
         ^
0_0_18385035_22120.cpp:6:36: error: lvalue required as unary '&' operand
     printf("%d\n",a+b);  return 0; 
                                    ^
0_0_18385035_22120.cpp:6:42: error: lvalue required as unary '&' operand
     printf("%d\n",a+b);  return 0; 
                                          ^
0_0_18385035_22120.cpp:6:54: error: lvalue required as unary '&' operand
     printf("%d\n",a+b);  return 0; 
                                                      ^
0_0_18385035_22120.cpp:6:62: error: lvalue required as unary '&' operand
     printf("%d\n",a+b);  return 0; 
                                                              ^


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-11-25 17:33:28, Gzip enabled