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_21588557_4222.cpp:15:19: error: stray '#' in program
    if (dir[0] == 'N'){
                   ^
0_0_21588557_4222.cpp:15:25: error: stray '#' in program
    if (dir[0] == 'N'){
                         ^
0_0_21588557_4222.cpp:19:19: error: stray '#' in program
      ++x, dir[0]='S';
                   ^
0_0_21588557_4222.cpp:19:25: error: stray '#' in program
      ++x, dir[0]='S';
                         ^
0_0_21588557_4222.cpp:21:24: error: stray '#' in program
    else if (dir[0] == 'S'){
                        ^
0_0_21588557_4222.cpp:21:30: error: stray '#' in program
    else if (dir[0] == 'S'){
                              ^
0_0_21588557_4222.cpp:25:19: error: stray '#' in program
      --x, dir[0]='N';
                   ^
0_0_21588557_4222.cpp:25:25: error: stray '#' in program
      --x, dir[0]='N';
                         ^
0_0_21588557_4222.cpp:27:24: error: stray '#' in program
    else if (dir[0] == 'W'){
                        ^
0_0_21588557_4222.cpp:27:30: error: stray '#' in program
    else if (dir[0] == 'W'){
                              ^
0_0_21588557_4222.cpp:31:19: error: stray '#' in program
      ++y, dir[0]='E';
                   ^
0_0_21588557_4222.cpp:31:25: error: stray '#' in program
      ++y, dir[0]='E';
                         ^
0_0_21588557_4222.cpp:37:19: error: stray '#' in program
      --y, dir[0]='W';
                   ^
0_0_21588557_4222.cpp:37:25: error: stray '#' in program
      --y, dir[0]='W';
                         ^
0_0_21588557_4222.cpp:42:18: error: stray '#' in program
   if (dir[0] == 'N')
                  ^
0_0_21588557_4222.cpp:42:24: error: stray '#' in program
   if (dir[0] == 'N')
                        ^
0_0_21588557_4222.cpp:43:14: error: stray '#' in program
    dir[0] = 'W';
              ^
0_0_21588557_4222.cpp:43:20: error: stray '#' in program
    dir[0] = 'W';
                    ^
0_0_21588557_4222.cpp:44:23: error: stray '#' in program
   else if (dir[0] == 'S')
                       ^
0_0_21588557_4222.cpp:44:29: error: stray '#' in program
   else if (dir[0] == 'S')
                             ^
0_0_21588557_4222.cpp:45:14: error: stray '#' in program
    dir[0] = 'E';
              ^
0_0_21588557_4222.cpp:45:20: error: stray '#' in program
    dir[0] = 'E';
                    ^
0_0_21588557_4222.cpp:46:23: error: stray '#' in program
   else if (dir[0] == 'W')
                       ^
0_0_21588557_4222.cpp:46:29: error: stray '#' in program
   else if (dir[0] == 'W')
                             ^
0_0_21588557_4222.cpp:47:14: error: stray '#' in program
    dir[0] = 'S';
              ^
0_0_21588557_4222.cpp:47:20: error: stray '#' in program
    dir[0] = 'S';
                    ^
0_0_21588557_4222.cpp:49:14: error: stray '#' in program
    dir[0] = 'N';
              ^
0_0_21588557_4222.cpp:49:20: error: stray '#' in program
    dir[0] = 'N';
                    ^
0_0_21588557_4222.cpp: In member function 'void node::run()':
0_0_21588557_4222.cpp:15:20: error: lvalue required as unary '&' operand
    if (dir[0] == 'N'){
                    ^
0_0_21588557_4222.cpp:15:22: error: expected ')' before ';' token
    if (dir[0] == 'N'){
                      ^
0_0_21588557_4222.cpp:15:23: error: 'N' was not declared in this scope
    if (dir[0] == 'N'){
                       ^
0_0_21588557_4222.cpp:15:29: error: expected primary-expression before ')' token
    if (dir[0] == 'N'){
                             ^
0_0_21588557_4222.cpp:21:4: error: 'else' without a previous 'if'
    else if (dir[0] == 'S'){
    ^
0_0_21588557_4222.cpp:21:25: error: lvalue required as unary '&' operand
    else if (dir[0] == 'S'){
                         ^
0_0_21588557_4222.cpp:21:27: error: expected ')' before ';' token
    else if (dir[0] == 'S'){
                           ^
0_0_21588557_4222.cpp:21:28: error: 'S' was not declared in this scope
    else if (dir[0] == 'S'){
                            ^
0_0_21588557_4222.cpp:21:34: error: expected primary-expression before ')' token
    else if (dir[0] == 'S'){
                                  ^
0_0_21588557_4222.cpp:27:4: error: 'else' without a previous 'if'
    else if (dir[0] == 'W'){
    ^
0_0_21588557_4222.cpp:27:25: error: lvalue required as unary '&' operand
    else if (dir[0] == 'W'){
                         ^
0_0_21588557_4222.cpp:27:27: error: expected ')' before ';' token
    else if (dir[0] == 'W'){
                           ^
0_0_21588557_4222.cpp:27:28: error: 'W' was not declared in this scope
    else if (dir[0] == 'W'){
                            ^
0_0_21588557_4222.cpp:27:34: error: expected primary-expression before ')' token
    else if (dir[0] == 'W'){
                                  ^
0_0_21588557_4222.cpp:33:4: error: 'else' without a previous 'if'
    else{
    ^
0_0_21588557_4222.cpp:37:20: error: lvalue required as unary '&' operand
      --y, dir[0]='W';
                    ^
0_0_21588557_4222.cpp: In member function 'void node::change()':
0_0_21588557_4222.cpp:42:19: error: lvalue required as unary '&' operand
   if (dir[0] == 'N')
                   ^
0_0_21588557_4222.cpp:42:21: error: expected ')' before ';' token
   if (dir[0] == 'N')
                     ^
0_0_21588557_4222.cpp:42:22: error: 'N' was not declared in this scope
   if (dir[0] == 'N')
                      ^
0_0_21588557_4222.cpp:42:28: error: expected primary-expression before ')' token
   if (dir[0] == 'N')
                            ^
0_0_21588557_4222.cpp:43:18: error: 'W' was not declared in this scope
    dir[0] = 'W';
                  ^
0_0_21588557_4222.cpp:44:3: error: 'else' without a previous 'if'
   else if (dir[0] == 'S')
   ^
0_0_21588557_4222.cpp:44:24: error: lvalue required as unary '&' operand
   else if (dir[0] == 'S')
                        ^
0_0_21588557_4222.cpp:44:26: error: expected ')' before ';' token
   else if (dir[0] == 'S')
                          ^
0_0_21588557_4222.cpp:44:27: error: 'S' was not declared in this scope
   else if (dir[0] == 'S')
                           ^
0_0_21588557_4222.cpp:44:33: error: expected primary-expression before ')' token
   else if (dir[0] == 'S')
                                 ^
0_0_21588557_4222.cpp:45:18: error: 'E' was not declared in this scope
    dir[0] = 'E';
                  ^
0_0_21588557_4222.cpp:46:3: error: 'else' without a previous 'if'
   else if (dir[0] == 'W')
   ^
0_0_21588557_4222.cpp:46:24: error: lvalue required as unary '&' operand
   else if (dir[0] == 'W')
                        ^
0_0_21588557_4222.cpp:46:26: error: expected ')' before ';' token
   else if (dir[0] == 'W')
                          ^
0_0_21588557_4222.cpp:46:33: error: expected primary-expression before ')' token
   else if (dir[0] == 'W')
                                 ^
0_0_21588557_4222.cpp:48:3: error: 'else' without a previous 'if'
   else
   ^
0_0_21588557_4222.cpp:49:15: error: lvalue required as unary '&' operand
    dir[0] = 'N';
               ^


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-03 04:02:22, Gzip enabled