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_18130702_27158.cpp: In function 'bool check()':
0_0_18130702_27158.cpp:13:23: error: 'n' was not declared in this scope
  for (int i = 1; i <= n; i++)
                       ^
0_0_18130702_27158.cpp: In function 'void color(int, int, int)':
0_0_18130702_27158.cpp:33:13: error: 'd' was not declared in this scope
   color(x + d[x], y + d[y]);
             ^
0_0_18130702_27158.cpp: In function 'void changecolor(int)':
0_0_18130702_27158.cpp:38:23: error: 'n' was not declared in this scope
  for (int i = 1; i <= n; i++)
                       ^
0_0_18130702_27158.cpp: In function 'void dfs(int, int, int)':
0_0_18130702_27158.cpp:46:21: error: 'min' was not declared in this scope
   ans = min(ans, dep);
                     ^
0_0_18130702_27158.cpp:49:26: error: 'memset' was not declared in this scope
  memset(ma, 0, sizeof(ma));
                          ^
0_0_18130702_27158.cpp:51:2: error: 'set' was not declared in this scope
  set<int> plans;
  ^
0_0_18130702_27158.cpp:51:6: error: expected primary-expression before 'int'
  set<int> plans;
      ^
0_0_18130702_27158.cpp:52:23: error: 'n' was not declared in this scope
  for (int i = 1; i <= n; i++)
                       ^
0_0_18130702_27158.cpp:55:5: error: 'plans' was not declared in this scope
     plans.insert(ma[i][j]);
     ^
0_0_18130702_27158.cpp:57:11: error: expected primary-expression before 'int'
  for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
           ^
0_0_18130702_27158.cpp:57:45: error: 'i' was not declared in this scope
  for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
                                             ^
0_0_18130702_27158.cpp:57:50: error: 'plans' was not declared in this scope
  for (set<int>::iterator i = plans.begin(); i != plans.end(); i++) {
                                                  ^
0_0_18130702_27158.cpp:60:15: error: 'ff' was not declared in this scope
   memcpy(fct, ff, sizeof(fct));
               ^
0_0_18130702_27158.cpp:60:30: error: 'memcpy' was not declared in this scope
   memcpy(fct, ff, sizeof(fct));
                              ^
0_0_18130702_27158.cpp: In function 'int main()':
0_0_18130702_27158.cpp:69:23: error: 'scanf' was not declared in this scope
  while (scanf("%d", &n) == 1 && n) {
                       ^
0_0_18130702_27158.cpp:70:29: error: 'memset' was not declared in this scope
   memset(ma, inf, sizeof(ma));
                             ^


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 21:41:29, Gzip enabled