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_17368795_12620.cpp: In function 'void dfs(int, int)':
0_0_17368795_12620.cpp:6:11: error: 'maze' cannot be used as a function
  maze(i, j) = '*';
           ^
0_0_17368795_12620.cpp:8:22: error: 'm' was not declared in this scope
  for(int x = -1; x < m; x++) {
                      ^
0_0_17368795_12620.cpp:9:23: error: 'n' was not declared in this scope
   for(int y = -1; y < n; y++) {
                       ^
0_0_17368795_12620.cpp:13:28: error: expected primary-expression before '=' token
    if(0 <= nx && nx < n && = <= ny && ny < m && maze[i][j] == '@')
                            ^
0_0_17368795_12620.cpp:13:30: error: expected primary-expression before '<=' token
    if(0 <= nx && nx < n && = <= ny && ny < m && maze[i][j] == '@')
                              ^
0_0_17368795_12620.cpp: In function 'int main()':
0_0_17368795_12620.cpp:22:31: error: expected ')' before '{' token
  while(~scanf("%d%d", &n, &m) {
                               ^


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 01:43:40, Gzip enabled