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_23207501_2944.cpp:7:16: error: expected unqualified-id before numeric constant
  struct Point  8 {
                ^
0_0_23207501_2944.cpp:10:4: error: 'P' does not name a type
  } P[1000];
    ^
0_0_23207501_2944.cpp: In function 'int move(int)':
0_0_23207501_2944.cpp:14:10: error: 'P' was not declared in this scope
      if (P[tmp].dir=='N') py--;
          ^
0_0_23207501_2944.cpp:15:10: error: 'P' was not declared in this scope
      if (P[tmp].dir=='E') px++;
          ^
0_0_23207501_2944.cpp:16:10: error: 'P' was not declared in this scope
      if (P[tmp].dir=='S') py++;
          ^
0_0_23207501_2944.cpp:17:10: error: 'P' was not declared in this scope
      if (P[tmp].dir=='W') px--;
          ^
0_0_23207501_2944.cpp:21:10: error: 'P' was not declared in this scope
      if (P[tmp].vis)
          ^
0_0_23207501_2944.cpp: In function 'int main()':
0_0_23207501_2944.cpp:39:23: error: 'P' was not declared in this scope
                  cin>>P[k].dir;
                       ^
0_0_23207501_2944.cpp:43:10: error: 'P' was not declared in this scope
          P[first].step=1,P[first].vis=1;
          ^


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-16 21:03:16, Gzip enabled