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_19041594_12726.cpp:3:5: error: 'nbsp' declared as reference but not initialized
 int main()
     ^
0_0_19041594_12726.cpp: In function 'int main()':
0_0_19041594_12726.cpp:5:29: error: 'nbsp' declared as reference but not initialized
     int n,sum;
                             ^
0_0_19041594_12726.cpp:5:34: error: 'n' was not declared in this scope
     int n,sum;
                                  ^
0_0_19041594_12726.cpp:5:36: error: 'sum' was not declared in this scope
     int n,sum;
                                    ^
0_0_19041594_12726.cpp:6:30: error: conflicting declaration 'char& nbsp'
     char str[1000];
                              ^
0_0_19041594_12726.cpp:5:29: note: previous declaration as 'int& nbsp'
     int n,sum;
                             ^
0_0_19041594_12726.cpp:6:35: error: 'str' was not declared in this scope
     char str[1000];
                                   ^
0_0_19041594_12726.cpp:8:33: error: 'nbsp' declared as reference but not initialized
     for(int i=1;i<=n;i++)
                                 ^
0_0_19041594_12726.cpp:8:38: error: 'i' was not declared in this scope
     for(int i=1;i<=n;i++)
                                      ^
0_0_19041594_12726.cpp:8:46: error: expected ')' before ';' token
     for(int i=1;i<=n;i++)
                                              ^
0_0_19041594_12726.cpp:8:47: error: 'i' was not declared in this scope
     for(int i=1;i<=n;i++)
                                               ^
0_0_19041594_12726.cpp:12:57: error: 'nbsp' declared as reference but not initialized
         for(int j=0;j<signed(strlen(str));j++)
                                                         ^
0_0_19041594_12726.cpp:12:62: error: 'j' was not declared in this scope
         for(int j=0;j<signed(strlen(str));j++)
                                                              ^
0_0_19041594_12726.cpp:12:87: error: expected ')' before ';' token
         for(int j=0;j<signed(strlen(str));j++)
                                                                                       ^
0_0_19041594_12726.cpp:12:88: error: 'j' was not declared in this scope
         for(int j=0;j<signed(strlen(str));j++)
                                                                                        ^
0_0_19041594_12726.cpp:17:32: error: invalid conversion from 'int*' to 'int' [-fpermissive]
     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-11-17 09:35:23, Gzip enabled