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_20413220_31041.cpp:4:6: error: stray '#' in program
  int n;
      ^
0_0_20413220_31041.cpp:6:6: error: stray '#' in program
  int sum=0; 
      ^
0_0_20413220_31041.cpp:6:18: error: stray '#' in program
  int sum=0; 
                  ^
0_0_20413220_31041.cpp:7:2: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
  ^
0_0_20413220_31041.cpp:7:8: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
        ^
0_0_20413220_31041.cpp:7:14: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
              ^
0_0_20413220_31041.cpp:7:20: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
                    ^
0_0_20413220_31041.cpp:7:53: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
                                                     ^
0_0_20413220_31041.cpp:7:59: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
                                                           ^
0_0_20413220_31041.cpp:7:65: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
                                                                 ^
0_0_20413220_31041.cpp:7:71: error: stray '#' in program
     while((scanf("%d",&n)!=-1))    
                                                                       ^
0_0_20413220_31041.cpp:8:4: error: stray '#' in program
  { 
    ^
0_0_20413220_31041.cpp:11:2: error: stray '#' in program
         sum=0; 
  ^
0_0_20413220_31041.cpp:11:8: error: stray '#' in program
         sum=0; 
        ^
0_0_20413220_31041.cpp:11:14: error: stray '#' in program
         sum=0; 
              ^
0_0_20413220_31041.cpp:11:20: error: stray '#' in program
         sum=0; 
                    ^
0_0_20413220_31041.cpp:11:26: error: stray '#' in program
         sum=0; 
                          ^
0_0_20413220_31041.cpp:11:32: error: stray '#' in program
         sum=0; 
                                ^
0_0_20413220_31041.cpp:11:38: error: stray '#' in program
         sum=0; 
                                      ^
0_0_20413220_31041.cpp:11:44: error: stray '#' in program
         sum=0; 
                                            ^
0_0_20413220_31041.cpp:11:56: error: stray '#' in program
         sum=0; 
                                                        ^
0_0_20413220_31041.cpp:12:2: error: stray '#' in program
         for(i=0;i<=n;i++)  
  ^
0_0_20413220_31041.cpp:12:8: error: stray '#' in program
         for(i=0;i<=n;i++)  
        ^
0_0_20413220_31041.cpp:12:14: error: stray '#' in program
         for(i=0;i<=n;i++)  
              ^
0_0_20413220_31041.cpp:12:20: error: stray '#' in program
         for(i=0;i<=n;i++)  
                    ^
0_0_20413220_31041.cpp:12:26: error: stray '#' in program
         for(i=0;i<=n;i++)  
                          ^
0_0_20413220_31041.cpp:12:32: error: stray '#' in program
         for(i=0;i<=n;i++)  
                                ^
0_0_20413220_31041.cpp:12:38: error: stray '#' in program
         for(i=0;i<=n;i++)  
                                      ^
0_0_20413220_31041.cpp:12:44: error: stray '#' in program
         for(i=0;i<=n;i++)  
                                            ^
0_0_20413220_31041.cpp:12:67: error: stray '#' in program
         for(i=0;i<=n;i++)  
                                                                   ^
0_0_20413220_31041.cpp:12:73: error: stray '#' in program
         for(i=0;i<=n;i++)  
                                                                         ^
0_0_20413220_31041.cpp:13:2: error: stray '#' in program
             sum+=i;   
  ^
0_0_20413220_31041.cpp:13:8: error: stray '#' in program
             sum+=i;   
        ^
0_0_20413220_31041.cpp:13:14: error: stray '#' in program
             sum+=i;   
              ^
0_0_20413220_31041.cpp:13:20: error: stray '#' in program
             sum+=i;   
                    ^
0_0_20413220_31041.cpp:13:26: error: stray '#' in program
             sum+=i;   
                          ^
0_0_20413220_31041.cpp:13:32: error: stray '#' in program
             sum+=i;   
                                ^
0_0_20413220_31041.cpp:13:38: error: stray '#' in program
             sum+=i;   
                                      ^
0_0_20413220_31041.cpp:13:44: error: stray '#' in program
             sum+=i;   
                                            ^
0_0_20413220_31041.cpp:13:50: error: stray '#' in program
             sum+=i;   
                                                  ^
0_0_20413220_31041.cpp:13:56: error: stray '#' in program
             sum+=i;   
                                                        ^
0_0_20413220_31041.cpp:13:62: error: stray '#' in program
             sum+=i;   
                                                              ^
0_0_20413220_31041.cpp:13:68: error: stray '#' in program
             sum+=i;   
                                                                    ^
0_0_20413220_31041.cpp:13:81: error: stray '#' in program
             sum+=i;   
                                                                                 ^
0_0_20413220_31041.cpp:13:87: error: stray '#' in program
             sum+=i;   
                                                                                       ^
0_0_20413220_31041.cpp:13:93: error: stray '#' in program
             sum+=i;   
                                                                                             ^
0_0_20413220_31041.cpp:14:2: error: stray '#' in program
     printf("%d\n\n",sum);    
  ^
0_0_20413220_31041.cpp:14:8: error: stray '#' in program
     printf("%d\n\n",sum);    
        ^
0_0_20413220_31041.cpp:14:14: error: stray '#' in program
     printf("%d\n\n",sum);    
              ^
0_0_20413220_31041.cpp:14:20: error: stray '#' in program
     printf("%d\n\n",sum);    
                    ^
0_0_20413220_31041.cpp:14:47: error: stray '#' in program
     printf("%d\n\n",sum);    
                                               ^
0_0_20413220_31041.cpp:14:53: error: stray '#' in program
     printf("%d\n\n",sum);    
                                                     ^
0_0_20413220_31041.cpp:14:59: error: stray '#' in program
     printf("%d\n\n",sum);    
                                                           ^
0_0_20413220_31041.cpp:14:65: error: stray '#' in program
     printf("%d\n\n",sum);    
                                                                 ^
0_0_20413220_31041.cpp:15:3: error: stray '#' in program
   }
   ^
0_0_20413220_31041.cpp: In function 'int main()':
0_0_20413220_31041.cpp:4:7: error: expected unqualified-id before numeric constant
  int n;
       ^
0_0_20413220_31041.cpp:4:7: error: expected initializer before numeric constant
0_0_20413220_31041.cpp:4:11: error: 'n' was not declared in this scope
  int n;
           ^
0_0_20413220_31041.cpp:6:7: error: exp


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