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_39829141_22482.cpp:1:9: error: expected declaration before '}' token
    1 |         }
      |         ^
0_0_39829141_22482.cpp:9:20: error: 't' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                    ^
0_0_39829141_22482.cpp:9:28: error: 'c' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                            ^
0_0_39829141_22482.cpp:9:30: error: 'a' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                              ^
0_0_39829141_22482.cpp:9:24: error: 'abs' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                        ^~~
0_0_39829141_22482.cpp:9:39: error: 'd' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                                       ^
0_0_39829141_22482.cpp:9:41: error: 'b' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                                         ^
0_0_39829141_22482.cpp:9:35: error: 'abs' was not declared in this scope
    9 |         int tmp =  t - abs(c-a) - abs(d-b);
      |                                   ^~~
0_0_39829141_22482.cpp:10:9: error: expected unqualified-id before 'if'
   10 |         if (tmp % 2) {puts("NO"); continue;}
      |         ^~
0_0_39829141_22482.cpp:11:9: error: 'visited' does not name a type
   11 |         visited[a][b] = 1;
      |         ^~~~~~~
0_0_39829141_22482.cpp:12:9: error: 'flag' does not name a type
   12 |         flag = 0;
      |         ^~~~
0_0_39829141_22482.cpp:13:12: error: expected constructor, destructor, or type conversion before '(' token
   13 |         dfs(a, b, 0);
      |            ^
0_0_39829141_22482.cpp:14:9: error: expected unqualified-id before 'if'
   14 |         if(flag) puts("YES");
      |         ^~
0_0_39829141_22482.cpp:15:9: error: expected unqualified-id before 'else'
   15 |         else puts("NO");
      |         ^~~~
0_0_39829141_22482.cpp:16:5: error: expected declaration before '}' token
   16 |     }
      |     ^
0_0_39829141_22482.cpp:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
0_0_39829141_22482.cpp:18:1: error: expected declaration before '}' token
   18 | }
      | ^


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-01 13:10:21, Gzip enabled