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_39089142_27427.cpp:1:1: error: 'View' does not name a type
    1 | View Code
      | ^~~~
0_0_39089142_27427.cpp:5:9: error: '__int64' does not name a type
    5 | typedef __int64 int64;
      |         ^~~~~~~
0_0_39089142_27427.cpp:7:1: error: 'int64' does not name a type; did you mean 'int'?
    7 | int64 dp[63][11][11];//j min(0-1) k max(0-1)
      | ^~~~~
      | int
0_0_39089142_27427.cpp: In function 'void solve()':
0_0_39089142_27427.cpp:10:15: error: 'int64' was not declared in this scope; did you mean 'int'?
   10 |     int i,j,k;int64 tmp,t1,t2;
      |               ^~~~~
      |               int
0_0_39089142_27427.cpp:11:12: error: 'dp' was not declared in this scope
   11 |     memset(dp[0],0,sizeof(dp[0]));
      |            ^~
0_0_39089142_27427.cpp:11:5: error: 'memset' was not declared in this scope
   11 |     memset(dp[0],0,sizeof(dp[0]));
      |     ^~~~~~
0_0_39089142_27427.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | View Code
0_0_39089142_27427.cpp:17:17: error: 'tmp' was not declared in this scope
   17 |                 tmp=dp[i-1][j+M][k+M];
      |                 ^~~
0_0_39089142_27427.cpp:19:17: error: 't1' was not declared in this scope
   19 |                 t1=f_min(j+1,1),t2=f_max(k+1,1);
      |                 ^~
0_0_39089142_27427.cpp:19:20: error: 'f_min' was not declared in this scope
   19 |                 t1=f_min(j+1,1),t2=f_max(k+1,1);
      |                    ^~~~~
0_0_39089142_27427.cpp:19:33: error: 't2' was not declared in this scope
   19 |                 t1=f_min(j+1,1),t2=f_max(k+1,1);
      |                                 ^~
0_0_39089142_27427.cpp:19:36: error: 'f_max' was not declared in this scope
   19 |                 t1=f_min(j+1,1),t2=f_max(k+1,1);
      |                                    ^~~~~
0_0_39089142_27427.cpp:26:10: error: expected ';' before 'ans'
   26 |     int64 ans=0;
      |          ^~~~
      |          ;
0_0_39089142_27427.cpp:28:9: error: 'ans' was not declared in this scope
   28 |         ans+=dp[N][i+M][j+M];
      |         ^~~
0_0_39089142_27427.cpp:31:22: error: 'ans' was not declared in this scope
   31 |     printf("%I64d\n",ans);
      |                      ^~~
0_0_39089142_27427.cpp:31:5: error: 'printf' was not declared in this scope
   31 |     printf("%I64d\n",ans);
      |     ^~~~~~
0_0_39089142_27427.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | View Code


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-10 03:25:01, Gzip enabled