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_39382100_18655.cpp:6:1: error: 'map' does not name a type
    6 | map<int,int>mp;
      | ^~~
0_0_39382100_18655.cpp: In function 'int main()':
0_0_39382100_18655.cpp:16:9: error: 'mp' was not declared in this scope; did you mean 'm'?
   16 |         mp.clear();
      |         ^~
      |         m
0_0_39382100_18655.cpp:22:9: error: 'memset' was not declared in this scope
   22 |         memset(dp,0,sizeof dp);
      |         ^~~~~~
0_0_39382100_18655.cpp:2:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | using namespace std;
0_0_39382100_18655.cpp:29:32: error: 'max' was not declared in this scope; did you mean 'maxn'?
   29 |                     dp[j][i+j]=max(dp[j][i+j],dp[j+1][i+j-1]+2);
      |                                ^~~
      |                                maxn
0_0_39382100_18655.cpp:34:32: error: 'max' was not declared in this scope; did you mean 'maxn'?
   34 |                     dp[j][i+j]=max(dp[j][i+j],dp[j][k]+dp[k+1][i+j]);
      |                                ^~~
      |                                maxn
0_0_39382100_18655.cpp:41:37: error: 'max' was not declared in this scope; did you mean 'maxn'?
   41 |                          dp[j][i+j]=max(dp[j][i+j],dp[j+1][k-1]+dp[k+1][i+j-1]+3);
      |                                     ^~~
      |                                     maxn


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-12-02 14:17:26, Gzip enabled