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;
^
|