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_39273876_32256.cpp:7:22: error: 'maxs' was not declared in this scope; did you mean 'maxf'?
    7 | long long f[maxl+10][maxs+10],g[maxl+10][maxs+10];
      |                      ^~~~
      |                      maxf
0_0_39273876_32256.cpp:7:42: error: 'maxs' was not declared in this scope; did you mean 'maxf'?
    7 | long long f[maxl+10][maxs+10],g[maxl+10][maxs+10];
      |                                          ^~~~
      |                                          maxf
0_0_39273876_32256.cpp: In function 'int main()':
0_0_39273876_32256.cpp:21:9: error: 'f' was not declared in this scope
   21 |         f[0][0]=1;
      |         ^
0_0_39273876_32256.cpp:22:24: error: 'maxs' was not declared in this scope; did you mean 'maxf'?
   22 |         for(int i=0;i<=maxs;i++)g[0][i]=1;
      |                        ^~~~
      |                        maxf
0_0_39273876_32256.cpp:22:33: error: 'g' was not declared in this scope
   22 |         for(int i=0;i<=maxs;i++)g[0][i]=1;
      |                                 ^
0_0_39273876_32256.cpp:28:25: error: 'g' was not declared in this scope
   28 |                         g[i][j]+=f[i][j];
      |                         ^
0_0_39273876_32256.cpp:44:54: error: 'g' was not declared in this scope
   44 |                                 if(fa>=d*(1<<i))ans+=g[i][fa-d*(1<<i)];
      |                                                      ^


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.001000(s) query 1, Server time : 2025-01-05 07:09:38, Gzip enabled