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_18479329_1662.cpp:3:6: error: expected nested-name-specifier before '&' token
 using namespace std;
      ^
0_0_18479329_1662.cpp:3:21: error: expected identifier before '&' token
 using namespace std;
                     ^
0_0_18479329_1662.cpp:3:26: error: expected constructor, destructor, or type conversion before ';' token
 using namespace std;
                          ^
0_0_18479329_1662.cpp:3:27: error: 'std' does not name a type
 using namespace std;
                           ^
0_0_18479329_1662.cpp:4:5: error: 'nbsp' declared as reference but not initialized
 int dp[110],value[110][110];
     ^
0_0_18479329_1662.cpp:4:10: error: 'dp' does not name a type
 int dp[110],value[110][110];
          ^
0_0_18479329_1662.cpp:5:5: error: redefinition of 'int& nbsp'
 int main()
     ^
0_0_18479329_1662.cpp:4:5: note: 'int& nbsp' previously declared here
 int dp[110],value[110][110];
     ^
0_0_18479329_1662.cpp: In function 'int main()':
0_0_18479329_1662.cpp:7:23: error: 'nbsp' declared as reference but not initialized
    int n,m;
                       ^
0_0_18479329_1662.cpp:7:28: error: 'n' was not declared in this scope
    int n,m;
                            ^
0_0_18479329_1662.cpp:7:30: error: 'm' was not declared in this scope
    int n,m;
                              ^
0_0_18479329_1662.cpp:10:69: error: 'nbsp' declared as reference but not initialized
           for(int i=0;i<m;i++)
                                                                     ^
0_0_18479329_1662.cpp:10:74: error: 'i' was not declared in this scope
           for(int i=0;i<m;i++)
                                                                          ^
0_0_18479329_1662.cpp:10:81: error: expected ')' before ';' token
           for(int i=0;i<m;i++)
                                                                                 ^
0_0_18479329_1662.cpp:10:82: error: 'i' was not declared in this scope
           for(int i=0;i<m;i++)
                                                                                  ^
0_0_18479329_1662.cpp:11:81: error: 'nbsp' declared as reference but not initialized
             for(int j=0;j<n;j++)
                                                                                 ^
0_0_18479329_1662.cpp:11:86: error: 'j' was not declared in this scope
             for(int j=0;j<n;j++)
                                                                                      ^
0_0_18479329_1662.cpp:11:93: error: expected ')' before ';' token
             for(int j=0;j<n;j++)
                                                                                             ^
0_0_18479329_1662.cpp:11:94: error: 'j' was not declared in this scope
             for(int j=0;j<n;j++)
                                                                                              ^
0_0_18479329_1662.cpp:12:85: error: 'value' was not declared in this scope
             scanf("%d",&value[i][j]);
                                                                                     ^
0_0_18479329_1662.cpp:13:68: error: 'dp' was not declared in this scope
           memset(dp,0,sizeof(dp));
                                                                    ^
0_0_18479329_1662.cpp:13:83: error: 'memset' was not declared in this scope
           memset(dp,0,sizeof(dp));
                                                                                   ^
0_0_18479329_1662.cpp:14:69: error: 'nbsp' declared as reference but not initialized
           for(int i=0;i<m;i++)
                                                                     ^
0_0_18479329_1662.cpp:14:81: error: expected ')' before ';' token
           for(int i=0;i<m;i++)
                                                                                 ^
0_0_18479329_1662.cpp:15:87: error: 'nbsp' declared as reference but not initialized
              for(int j=n;j>=1;j--)
                                                                                       ^
0_0_18479329_1662.cpp:15:100: error: expected ')' before ';' token
              for(int j=n;j>=1;j--)
                                                                                                    ^
0_0_18479329_1662.cpp:16:111: error: 'nbsp' declared as reference but not initialized
                  for(int k=1;k<=j;k++)
                                                                                                               ^
0_0_18479329_1662.cpp:16:116: error: 'k' was not declared in this scope
                  for(int k=1;k<=j;k++)
                                                                                                                    ^
0_0_18479329_1662.cpp:16:124: error: expected ')' before ';' token
                  for(int k=1;k<=j;k++)
                                                                                                                            ^
0_0_18479329_1662.cpp:16:125: error: 'k' was not declared in this scope
                  for(int k=1;k<=j;k++)
                                                                                                                             ^
0_0_18479329_1662.cpp:25:26: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    return 0;    
                          ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 12:02:03, Gzip enabled