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_17260345_12384.cpp:4:2: error: stray '#' in program
     int n, i, sum = 0;
  ^
0_0_17260345_12384.cpp:4:8: error: stray '#' in program
     int n, i, sum = 0;
        ^
0_0_17260345_12384.cpp:4:14: error: stray '#' in program
     int n, i, sum = 0;
              ^
0_0_17260345_12384.cpp:5:2: error: stray '#' in program
     while(scanf("%d", &n)!=EOF) {
  ^
0_0_17260345_12384.cpp:5:8: error: stray '#' in program
     while(scanf("%d", &n)!=EOF) {
        ^
0_0_17260345_12384.cpp:5:14: error: stray '#' in program
     while(scanf("%d", &n)!=EOF) {
              ^
0_0_17260345_12384.cpp:6:2: error: stray '#' in program
         for(i=1; i<=n; ++i)
  ^
0_0_17260345_12384.cpp:6:8: error: stray '#' in program
         for(i=1; i<=n; ++i)
        ^
0_0_17260345_12384.cpp:6:15: error: stray '#' in program
         for(i=1; i<=n; ++i)
               ^
0_0_17260345_12384.cpp:6:21: error: stray '#' in program
         for(i=1; i<=n; ++i)
                     ^
0_0_17260345_12384.cpp:6:27: error: stray '#' in program
         for(i=1; i<=n; ++i)
                           ^
0_0_17260345_12384.cpp:6:34: error: stray '#' in program
         for(i=1; i<=n; ++i)
                                  ^
0_0_17260345_12384.cpp:7:2: error: stray '#' in program
             sum = sum + i;
  ^
0_0_17260345_12384.cpp:7:8: error: stray '#' in program
             sum = sum + i;
        ^
0_0_17260345_12384.cpp:7:14: error: stray '#' in program
             sum = sum + i;
              ^
0_0_17260345_12384.cpp:7:20: error: stray '#' in program
             sum = sum + i;
                    ^
0_0_17260345_12384.cpp:7:26: error: stray '#' in program
             sum = sum + i;
                          ^
0_0_17260345_12384.cpp:7:32: error: stray '#' in program
             sum = sum + i;
                                ^
0_0_17260345_12384.cpp:7:39: error: stray '#' in program
             sum = sum + i;
                                       ^
0_0_17260345_12384.cpp:7:45: error: stray '#' in program
             sum = sum + i;
                                             ^
0_0_17260345_12384.cpp:7:51: error: stray '#' in program
             sum = sum + i;
                                                   ^
0_0_17260345_12384.cpp:7:58: error: stray '#' in program
             sum = sum + i;
                                                          ^
0_0_17260345_12384.cpp:8:2: error: stray '#' in program
         printf("%d\n\n", sum);
  ^
0_0_17260345_12384.cpp:8:8: error: stray '#' in program
         printf("%d\n\n", sum);
        ^
0_0_17260345_12384.cpp:8:15: error: stray '#' in program
         printf("%d\n\n", sum);
               ^
0_0_17260345_12384.cpp:8:21: error: stray '#' in program
         printf("%d\n\n", sum);
                     ^
0_0_17260345_12384.cpp:8:27: error: stray '#' in program
         printf("%d\n\n", sum);
                           ^
0_0_17260345_12384.cpp:8:34: error: stray '#' in program
         printf("%d\n\n", sum);
                                  ^
0_0_17260345_12384.cpp:9:2: error: stray '#' in program
         sum = 0;
  ^
0_0_17260345_12384.cpp:9:8: error: stray '#' in program
         sum = 0;
        ^
0_0_17260345_12384.cpp:9:15: error: stray '#' in program
         sum = 0;
               ^
0_0_17260345_12384.cpp:9:21: error: stray '#' in program
         sum = 0;
                     ^
0_0_17260345_12384.cpp:9:27: error: stray '#' in program
         sum = 0;
                           ^
0_0_17260345_12384.cpp:9:34: error: stray '#' in program
         sum = 0;
                                  ^
0_0_17260345_12384.cpp:10:2: error: stray '#' in program
     }
  ^
0_0_17260345_12384.cpp:10:8: error: stray '#' in program
     }
        ^
0_0_17260345_12384.cpp:10:14: error: stray '#' in program
     }
              ^
0_0_17260345_12384.cpp:11:2: error: stray '#' in program
     return 0; 
  ^
0_0_17260345_12384.cpp:11:8: error: stray '#' in program
     return 0; 
        ^
0_0_17260345_12384.cpp:11:14: error: stray '#' in program
     return 0; 
              ^
0_0_17260345_12384.cpp: In function 'int main()':
0_0_17260345_12384.cpp:4:3: error: lvalue required as unary '&' operand
     int n, i, sum = 0;
   ^
0_0_17260345_12384.cpp:4:9: error: lvalue required as unary '&' operand
     int n, i, sum = 0;
         ^
0_0_17260345_12384.cpp:4:15: error: lvalue required as unary '&' operand
     int n, i, sum = 0;
               ^
0_0_17260345_12384.cpp:5:3: error: lvalue required as unary '&' operand
     while(scanf("%d", &n)!=EOF) {
   ^
0_0_17260345_12384.cpp:5:9: error: lvalue required as unary '&' operand
     while(scanf("%d", &n)!=EOF) {
         ^
0_0_17260345_12384.cpp:5:15: error: lvalue required as unary '&' operand
     while(scanf("%d", &n)!=EOF) {
               ^
0_0_17260345_12384.cpp:6:3: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
   ^
0_0_17260345_12384.cpp:6:9: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
         ^
0_0_17260345_12384.cpp:6:16: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
                ^
0_0_17260345_12384.cpp:6:22: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
                      ^
0_0_17260345_12384.cpp:6:28: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
                            ^
0_0_17260345_12384.cpp:6:35: error: lvalue required as unary '&' operand
         for(i=1; i<=n; ++i)
                                   ^
0_0_17260345_12384.cpp:7:3: error: lvalue required as unary '&' operand
             sum = sum + i;
   ^
0_0_17260345_12384.cpp:7:9: error: lvalue required as unary '&' operand
             sum = sum + i;
         ^
0_0_17260345_12384.cpp:7:15: error: lvalue required as unary '&' operand
             sum = sum + i;
               ^
0_0_17260345_12384.cpp:7:21: error: lvalue required as unary '&' operand
             sum = sum + i;
                     ^
0_0_17260345_12384.cpp:7:27: error: lvalue required as unary '&' operand
             sum = sum + i;
                           ^
0_0_17260345_12384.cpp:7:33: error: lvalue required as unary '&' operand
             sum = sum + i;
                                 ^
0_0_17260345_12384.cpp:7:40: error: lvalue required as unary '&' operand
             sum = sum + i;
                                        ^
0_0_17260345_12384.cpp:7:46: error: lvalue required as unary '&' operand
             sum = sum + i;
                                              ^
0_0_17260345_12384.cpp:7:52: error: lvalue required as unary '&' operand
             sum = sum + i;
                                                    ^
0_0_17260345_12384.cpp:7:59: error: lvalue required as unary '&' operand
             sum = sum + i;
                                                           ^
0_0_17260345_12384.cpp:8:3: error: lvalue required as unary '&' operand
         printf("%d\n\n", sum);
   ^
0_0_17260345_12384.cpp:8:9: error: lvalue required as unary '&' operand
         printf("%d\n\n", sum);
         ^
0_0_17260345_12384.cpp:8:16: error: lvalue required as unary '&' operand
         printf("%d\n\n", sum);
                ^
0_0_17260345_12384.cpp:8:22: error: lvalue required as unary '&' operand
         printf("%d\n\n", sum);
                      ^
0_0_17260345_12384.cpp:8:28: error: lvalue required as


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-29 11:43:28, Gzip enabled