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_20752699_5763.cpp:3:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_20752699_5763.cpp:3:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_20752699_5763.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_20752699_5763.cpp:3:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_20752699_5763.cpp:4:5: error: 'nbsp' declared as reference but not initialized
 int main()
     ^
0_0_20752699_5763.cpp: In function 'int main()':
0_0_20752699_5763.cpp:6:23: error: 'nbsp' declared as reference but not initialized
    int n;
                       ^
0_0_20752699_5763.cpp:6:28: error: 'n' was not declared in this scope
    int n;
                            ^
0_0_20752699_5763.cpp:7:27: error: conflicting declaration 'long long int& nbsp'
    __int64 dp[40];
                           ^
0_0_20752699_5763.cpp:6:23: note: previous declaration as 'int& nbsp'
    int n;
                       ^
0_0_20752699_5763.cpp:7:32: error: 'dp' was not declared in this scope
    __int64 dp[40];
                                ^
0_0_20752699_5763.cpp:9:27: error: 'nbsp' declared as reference but not initialized
    for(int i=3;i<=40;i++)dp[i]=2*(dp[i-1]+dp[i-2]);
                           ^
0_0_20752699_5763.cpp:9:32: error: 'i' was not declared in this scope
    for(int i=3;i<=40;i++)dp[i]=2*(dp[i-1]+dp[i-2]);
                                ^
0_0_20752699_5763.cpp:9:41: error: expected ')' before ';' token
    for(int i=3;i<=40;i++)dp[i]=2*(dp[i-1]+dp[i-2]);
                                         ^
0_0_20752699_5763.cpp:9:42: error: 'i' was not declared in this scope
    for(int i=3;i<=40;i++)dp[i]=2*(dp[i-1]+dp[i-2]);
                                          ^
0_0_20752699_5763.cpp:14:26: 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-19 11:38:39, Gzip enabled