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_39697047_27589.cpp: In function 'void init()':
0_0_39697047_27589.cpp:4:9: error: 'ans' was not declared in this scope
    4 |         ans = inf;
      |         ^~~
0_0_39697047_27589.cpp:4:15: error: 'inf' was not declared in this scope; did you mean 'int'?
    4 |         ans = inf;
      |               ^~~
      |               int
0_0_39697047_27589.cpp:5:17: error: 'dp' was not declared in this scope
    5 |         memset (dp, 0x3f, sizeof dp);
      |                 ^~
0_0_39697047_27589.cpp:5:9: error: 'memset' was not declared in this scope
    5 |         memset (dp, 0x3f, sizeof dp);
      |         ^~~~~~
0_0_39697047_27589.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | 
0_0_39697047_27589.cpp:6:30: error: 'n' was not declared in this scope
    6 |         for (int i = 1; i <= n; i++) G[i].clear();
      |                              ^
0_0_39697047_27589.cpp:6:38: error: 'G' was not declared in this scope
    6 |         for (int i = 1; i <= n; i++) G[i].clear();
      |                                      ^
0_0_39697047_27589.cpp:8:9: error: 'pw3' was not declared in this scope
    8 |         pw3[0] = 1;
      |         ^~~
0_0_39697047_27589.cpp:9:30: error: 'n' was not declared in this scope
    9 |         for (int i = 1; i <= n; i++)
      |                              ^
0_0_39697047_27589.cpp:12:33: error: 'n' was not declared in this scope
   12 |         for (int i = 0; i < pw3[n]; i++)
      |                                 ^
0_0_39697047_27589.cpp:17:25: error: 'bit' was not declared in this scope
   17 |                         bit[i][j] = x % 3;
      |                         ^~~


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-17 00:33:57, Gzip enabled