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_21595198_7458.cpp:32:61: error: stray '#' in program
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                             ^
0_0_21595198_7458.cpp:32:65: error: stray '#' in program
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                 ^
0_0_21595198_7458.cpp:32:67: error: stray '#' in program
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                   ^
0_0_21595198_7458.cpp:61:21: error: stray '#' in program
      if(map[i][j]=='Y')
                     ^
0_0_21595198_7458.cpp:61:27: error: stray '#' in program
      if(map[i][j]=='Y')
                           ^
0_0_21595198_7458.cpp:65:26: error: stray '#' in program
      else if(map[i][j]=='G')
                          ^
0_0_21595198_7458.cpp:65:32: error: stray '#' in program
      else if(map[i][j]=='G')
                                ^
0_0_21595198_7458.cpp: In function 'void slove()':
0_0_21595198_7458.cpp:32:62: error: lvalue required as unary '&' operand
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                              ^
0_0_21595198_7458.cpp:32:64: error: expected ')' before ';' token
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                ^
0_0_21595198_7458.cpp:32:68: error: lvalue required as unary '&' operand
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                    ^
0_0_21595198_7458.cpp:32:75: error: expected ';' before '.' token
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                           ^
0_0_21595198_7458.cpp:32:73: error: label 'tp' used but not defined
    if(tp.x<0||tp.x>n-1||tp.y<0||tp.y>m-1||map[tp.x][tp.y]=='#'&&tp.time%k!=0)
                                                                         ^
0_0_21595198_7458.cpp: In function 'int main()':
0_0_21595198_7458.cpp:61:22: error: lvalue required as unary '&' operand
      if(map[i][j]=='Y')
                      ^
0_0_21595198_7458.cpp:61:24: error: expected ')' before ';' token
      if(map[i][j]=='Y')
                        ^
0_0_21595198_7458.cpp:61:25: error: 'Y' was not declared in this scope
      if(map[i][j]=='Y')
                         ^
0_0_21595198_7458.cpp:61:31: error: expected primary-expression before ')' token
      if(map[i][j]=='Y')
                               ^
0_0_21595198_7458.cpp:65:6: error: 'else' without a previous 'if'
      else if(map[i][j]=='G')
      ^
0_0_21595198_7458.cpp:65:27: error: lvalue required as unary '&' operand
      else if(map[i][j]=='G')
                           ^
0_0_21595198_7458.cpp:65:29: error: expected ')' before ';' token
      else if(map[i][j]=='G')
                             ^
0_0_21595198_7458.cpp:65:30: error: 'G' was not declared in this scope
      else if(map[i][j]=='G')
                              ^
0_0_21595198_7458.cpp:65:36: error: expected primary-expression before ')' token
      else if(map[i][j]=='G')
                                    ^


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-07-01 10:23:23, Gzip enabled