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_39437532_31063.cpp: In function 'long long int dfs(long long int, long long int, bool, bool, long long int, bool)':
0_0_39437532_31063.cpp:6:1: error: expected primary-expression before ']' token
    6 | ]       ll res=0;if(x==0)return (bool)(sum&&!y&&gs%7)*(gs%mod)*(gs%mod)%mod;
      | ^
0_0_39437532_31063.cpp:11:17: error: 'res' was not declared in this scope
   11 |                 res+=dfs(x-1,(sum+i)%7,flag&&i==up,y||i==7,(gs*10+i),i==lp&&ty);
      |                 ^~~
0_0_39437532_31063.cpp:14:38: error: 'res' was not declared in this scope
   14 |         if(!flag)dp[x][sum][gs%7][y]=res;
      |                                      ^~~
0_0_39437532_31063.cpp:15:16: error: 'res' was not declared in this scope
   15 |         return res;
      |                ^~~


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-04 11:22:20, Gzip enabled