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_16387781_30991.cpp:59:67: error: stray '#' in program
     for (i = now[s]; i != -1; i = edge[i].next)if (edge[i].c > 0 && dis[edge[i].to] == dis[s] + 1) {
                                                                   ^
0_0_16387781_30991.cpp:59:72: error: stray '#' in program
     for (i = now[s]; i != -1; i = edge[i].next)if (edge[i].c > 0 && dis[edge[i].to] == dis[s] + 1) {
                                                                        ^
0_0_16387781_30991.cpp:85:17: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                 ^
0_0_16387781_30991.cpp:85:22: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                      ^
0_0_16387781_30991.cpp:85:35: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                   ^
0_0_16387781_30991.cpp:85:40: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                        ^
0_0_16387781_30991.cpp:85:53: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                     ^
0_0_16387781_30991.cpp:85:58: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                          ^
0_0_16387781_30991.cpp:85:71: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                                       ^
0_0_16387781_30991.cpp:85:76: error: stray '#' in program
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                                            ^
0_0_16387781_30991.cpp:133:19: error: stray '#' in program
     while (scanf("%d%d", &n, &m) != EOF) {
                   ^
0_0_16387781_30991.cpp:133:28: error: stray '#' in program
     while (scanf("%d%d", &n, &m) != EOF) {
                            ^
0_0_16387781_30991.cpp:133:35: error: stray '#' in program
     while (scanf("%d%d", &n, &m) != EOF) {
                                   ^
0_0_16387781_30991.cpp:133:43: error: stray '#' in program
     while (scanf("%d%d", &n, &m) != EOF) {
                                           ^
0_0_16387781_30991.cpp:135:16: error: stray '#' in program
         scanf("%s", &map[i][1]);
                ^
0_0_16387781_30991.cpp:135:23: error: stray '#' in program
         scanf("%s", &map[i][1]);
                       ^
0_0_16387781_30991.cpp:135:30: error: stray '#' in program
         scanf("%s", &map[i][1]);
                              ^
0_0_16387781_30991.cpp:164:17: error: stray '#' in program
         printf("%d\n",ans);
                 ^
0_0_16387781_30991.cpp:164:9: error: stray '\' in program
         printf("%d\n",ans);
         ^
0_0_16387781_30991.cpp:164:26: error: stray '#' in program
         printf("%d\n",ans);
                          ^
0_0_16387781_30991.cpp: In function 'int dfs(int, int, int)':
0_0_16387781_30991.cpp:59:70: error: expected ')' before ';' token
     for (i = now[s]; i != -1; i = edge[i].next)if (edge[i].c > 0 && dis[edge[i].to] == dis[s] + 1) {
                                                                      ^
0_0_16387781_30991.cpp:59:73: error: lvalue required as unary '&' operand
     for (i = now[s]; i != -1; i = edge[i].next)if (edge[i].c > 0 && dis[edge[i].to] == dis[s] + 1) {
                                                                         ^
0_0_16387781_30991.cpp:59:106: error: expected ';' before ')' token
     for (i = now[s]; i != -1; i = edge[i].next)if (edge[i].c > 0 && dis[edge[i].to] == dis[s] + 1) {
                                                                                                          ^
0_0_16387781_30991.cpp: In function 'bool isok(int, int)':
0_0_16387781_30991.cpp:85:20: error: expected ')' before ';' token
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                    ^
0_0_16387781_30991.cpp:85:23: error: lvalue required as unary '&' operand
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                       ^
0_0_16387781_30991.cpp:85:41: error: lvalue required as unary '&' operand
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                         ^
0_0_16387781_30991.cpp:85:59: error: lvalue required as unary '&' operand
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                           ^
0_0_16387781_30991.cpp:85:77: error: lvalue required as unary '&' operand
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                                             ^
0_0_16387781_30991.cpp:85:97: error: expected ';' before ')' token
     if (x >= 1 && x <= n && y >= 1 && y <= m && map[x][y] != '#')
                                                                                                 ^
0_0_16387781_30991.cpp: In function 'int main()':
0_0_16387781_30991.cpp:133:20: error: lvalue required as unary '&' operand
     while (scanf("%d%d", &n, &m) != EOF) {
                    ^
0_0_16387781_30991.cpp:133:22: error: expected ')' before ';' token
     while (scanf("%d%d", &n, &m) != EOF) {
                      ^
0_0_16387781_30991.cpp:133:23: error: expected primary-expression before '%' token
     while (scanf("%d%d", &n, &m) != EOF) {
                       ^
0_0_16387781_30991.cpp:133:32: error: expected primary-expression before ',' token
     while (scanf("%d%d", &n, &m) != EOF) {
                                ^
0_0_16387781_30991.cpp:133:36: error: lvalue required as unary '&' operand
     while (scanf("%d%d", &n, &m) != EOF) {
                                    ^
0_0_16387781_30991.cpp:133:44: error: lvalue required as unary '&' operand
     while (scanf("%d%d", &n, &m) != EOF) {
                                            ^
0_0_16387781_30991.cpp:133:48: error: expected ';' before ')' token
     while (scanf("%d%d", &n, &m) != EOF) {
                                                ^
0_0_16387781_30991.cpp:167:1: error: expected '}' at end of input
 }
 ^


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.000000(s) query 1, Server time : 2025-01-10 16:44:01, Gzip enabled