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_23991682_9391.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <stdio.h>
         ^
0_0_23991682_9391.cpp:2:5: error: stray '#' in program
 int main() {
     ^
0_0_23991682_9391.cpp:3:9: error: stray '#' in program
     int a, b;
         ^
0_0_23991682_9391.cpp:3:17: error: stray '#' in program
     int a, b;
                 ^
0_0_23991682_9391.cpp:4:19: error: stray '#' in program
     scanf("%d%d", &a, &b);
                   ^
0_0_23991682_9391.cpp:4:28: error: stray '#' in program
     scanf("%d%d", &a, &b);
                            ^
0_0_23991682_9391.cpp:5:20: error: stray '#' in program
     printf("%d\n", a + b);
                    ^
0_0_23991682_9391.cpp:5:27: error: stray '#' in program
     printf("%d\n", a + b);
                           ^
0_0_23991682_9391.cpp:5:34: error: stray '#' in program
     printf("%d\n", a + b);
                                  ^
0_0_23991682_9391.cpp:6:12: error: stray '#' in program
     return 0;
            ^
0_0_23991682_9391.cpp:2:6: error: expected unqualified-id before numeric constant
 int main() {
      ^
0_0_23991682_9391.cpp:2:6: error: expected initializer before numeric constant
0_0_23991682_9391.cpp: In function 'int main()':
0_0_23991682_9391.cpp:3:10: error: expected unqualified-id before numeric constant
     int a, b;
          ^
0_0_23991682_9391.cpp:3:10: error: expected initializer before numeric constant
0_0_23991682_9391.cpp:3:14: error: 'a' was not declared in this scope
     int a, b;
              ^
0_0_23991682_9391.cpp:3:18: error: lvalue required as unary '&' operand
     int a, b;
                  ^
0_0_23991682_9391.cpp:3:22: error: 'b' was not declared in this scope
     int a, b;
                      ^
0_0_23991682_9391.cpp:4:20: error: lvalue required as unary '&' operand
     scanf("%d%d", &a, &b);
                    ^
0_0_23991682_9391.cpp:4:29: error: lvalue required as unary '&' operand
     scanf("%d%d", &a, &b);
                             ^
0_0_23991682_9391.cpp:5:21: error: lvalue required as unary '&' operand
     printf("%d\n", a + b);
                     ^
0_0_23991682_9391.cpp:5:35: error: lvalue required as unary '&' operand
     printf("%d\n", a + b);
                                   ^
0_0_23991682_9391.cpp:5:40: error: expected ';' before ')' token
     printf("%d\n", a + b);
                                        ^
0_0_23991682_9391.cpp:6:13: error: lvalue required as unary '&' operand
     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-10-06 21:36:12, Gzip enabled