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
}
^
|