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_39349168_20583.cpp: In function 'int dp(int, int)':
0_0_39349168_20583.cpp:6:24: error: 'num' was not declared in this scope; did you mean 'enum'?
    6 |                 return num[1][1];
      |                        ^~~
      |                        enum
0_0_39349168_20583.cpp:10:39: error: 'num' was not declared in this scope; did you mean 'enum'?
   10 |                 return dp(i - 1, j) + num[i][j];
      |                                       ^~~
      |                                       enum
0_0_39349168_20583.cpp:14:43: error: 'num' was not declared in this scope; did you mean 'enum'?
   14 |                 return dp(i - 1, j - 1) + num[i][j];
      |                                           ^~~
      |                                           enum
0_0_39349168_20583.cpp:21:24: error: 'max' was not declared in this scope
   21 |                 return max(temp1, temp2) + num[i][j];
      |                        ^~~
0_0_39349168_20583.cpp:21:44: error: 'num' was not declared in this scope; did you mean 'enum'?
   21 |                 return max(temp1, temp2) + num[i][j];
      |                                            ^~~
      |                                            enum


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-26 23:00:41, Gzip enabled