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_19597151_22272.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <cstdio>  
         ^
0_0_19597151_22272.cpp:2:5: error: 'nbsp' declared as reference but not initialized
 int main(){  
     ^
0_0_19597151_22272.cpp: In function 'int main()':
0_0_19597151_22272.cpp:3:29: error: 'nbsp' declared as reference but not initialized
     int n;  
                             ^
0_0_19597151_22272.cpp:3:34: error: 'n' was not declared in this scope
     int n;  
                                  ^
0_0_19597151_22272.cpp:4:29: error: redeclaration of 'int& nbsp'
     int pre,f;  
                             ^
0_0_19597151_22272.cpp:3:29: note: 'int& nbsp' previously declared here
     int n;  
                             ^
0_0_19597151_22272.cpp:4:34: error: 'pre' was not declared in this scope
     int pre,f;  
                                  ^
0_0_19597151_22272.cpp:4:38: error: 'f' was not declared in this scope
     int pre,f;  
                                      ^
0_0_19597151_22272.cpp:5:29: error: redeclaration of 'int& nbsp'
     int sum;  
                             ^
0_0_19597151_22272.cpp:3:29: note: 'int& nbsp' previously declared here
     int n;  
                             ^
0_0_19597151_22272.cpp:5:34: error: 'sum' was not declared in this scope
     int sum;  
                                  ^
0_0_19597151_22272.cpp:6:44: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n)&&n){  
                                            ^
0_0_19597151_22272.cpp:9:57: error: 'nbsp' declared as reference but not initialized
         for(int i=0;i<n;i++){  
                                                         ^
0_0_19597151_22272.cpp:9:62: error: 'i' was not declared in this scope
         for(int i=0;i<n;i++){  
                                                              ^
0_0_19597151_22272.cpp:9:69: error: expected ')' before ';' token
         for(int i=0;i<n;i++){  
                                                                     ^
0_0_19597151_22272.cpp:9:70: error: 'i' was not declared in this scope
         for(int i=0;i<n;i++){  
                                                                      ^
0_0_19597151_22272.cpp:17:66: error: 'printf' was not declared in this scope
         printf("%d\n",sum);  
                                                                  ^
0_0_19597151_22272.cpp: At global scope:
0_0_19597151_22272.cpp:19:7: error: expected constructor, destructor, or type conversion before ';' token
 }  
       ^
0_0_19597151_22272.cpp:19:13: error: expected constructor, destructor, or type conversion before ';' token
 }  
             ^


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-02 21:50:54, Gzip enabled