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_16738839_6320.cpp: In function 'll dfs(int, int, int, int)':
0_0_16738839_6320.cpp:35:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     if(lim==0 && dp[pos][cha][flag]!=-1 ){
                                       ^
0_0_16738839_6320.cpp:36:33: error: invalid conversion from 'int*' to 'll {aka long long int}' [-fpermissive]
         return dp[pos][cha][flag];
                                 ^
0_0_16738839_6320.cpp: In function 'void solve()':
0_0_16738839_6320.cpp:67:36: error: too many arguments to function 'll dfs(int, int, int, int)'
     printf("%lld\n",dfs(tot,0,0,1,1));
                                    ^
0_0_16738839_6320.cpp:25:4: note: declared here
 ll dfs(int pos,int cha,int flag,int lim)
    ^


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-24 16:22:38, Gzip enabled