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_38820090_26020.cpp:5:1: error: 'string' does not name a type; did you mean 'stdin'?
    5 | string  arr[10];
      | ^~~~~~
      | stdin
0_0_38820090_26020.cpp: In function 'int dfs(int, int, int)':
0_0_38820090_26020.cpp:26:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   26 |     return;
      |     ^~~~~~
0_0_38820090_26020.cpp:27:15: error: 'arr' was not declared in this scope
   27 |     if(bs==t&&arr[x][y]=='D')
      |               ^~~
0_0_38820090_26020.cpp:30:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   30 |         return;
      |         ^~~~~~
0_0_38820090_26020.cpp:36:26: error: 'arr' was not declared in this scope
   36 |         if(check(nx,ny)&&arr[nx][ny]!='X')
      |                          ^~~
0_0_38820090_26020.cpp:45:1: error: a function-definition is not allowed here before '{' token
   45 | {
      | ^
0_0_38820090_26020.cpp:110:2: error: expected '}' at end of input
  110 | }
      |  ^
0_0_38820090_26020.cpp:24:1: note: to match this '{'
   24 | {
      | ^


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-05 06:53:08, Gzip enabled