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_20375186_1688.cpp: In function 'int Max(int, int)':
0_0_20375186_1688.cpp:6:2: error: 'nbsp' was not declared in this scope
     if(a>b)return a;
  ^
0_0_20375186_1688.cpp:7:20: error: 'else' without a previous 'if'
     else
                    ^
0_0_20375186_1688.cpp: In function 'int main()':
0_0_20375186_1688.cpp:12:2: error: 'nbsp' was not declared in this scope
     int c;//一共有C个测试用例;
  ^
0_0_20375186_1688.cpp:20:83: error: 'i' was not declared in this scope
             for(int j=1;j<=i;j++)
                                                                                   ^
0_0_20375186_1688.cpp:21:75: error: 'i' was not declared in this scope
             cin>>f[i][j];
                                                                           ^
0_0_20375186_1688.cpp:21:78: error: 'j' was not declared in this scope
             cin>>f[i][j];
                                                                              ^
0_0_20375186_1688.cpp:25:83: error: 'i' was not declared in this scope
             for(int j=1;j<=i;j++)
                                                                                   ^
0_0_20375186_1688.cpp:26:70: error: 'i' was not declared in this scope
             f[i][j]=f[i][j]+Max(f[i+1][j],f[i+1][j+1]);
                                                                      ^
0_0_20375186_1688.cpp:26:73: error: 'j' was not declared in this scope
             f[i][j]=f[i][j]+Max(f[i+1][j],f[i+1][j+1]);
                                                                         ^


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-18 17:19:36, Gzip enabled