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_23567156_26847.cpp: In function 'int main()':
0_0_23567156_26847.cpp:19:9: error: 'intx' was not declared in this scope
         intx=310,y=420;//初始的坐标
         ^
0_0_23567156_26847.cpp:19:18: error: 'y' was not declared in this scope
         intx=310,y=420;//初始的坐标
                  ^
0_0_23567156_26847.cpp:20:9: error: 'intcur_dir' was not declared in this scope
         intcur_dir = 1;//初始的方向始终向右
         ^
0_0_23567156_26847.cpp:21:13: error: 'inti' was not declared in this scope
         for(inti=0;i<com.size();i++)
             ^
0_0_23567156_26847.cpp:21:20: error: 'i' was not declared in this scope
         for(inti=0;i<com.size();i++)
                    ^
0_0_23567156_26847.cpp:24:13: error: 'charc' was not declared in this scope
             charc=com[i];//命令
             ^
0_0_23567156_26847.cpp:25:13: error: 'intnew_dir' was not declared in this scope
             intnew_dir ;//新的方向
             ^
0_0_23567156_26847.cpp:26:15: error: 'c' was not declared in this scope
            if(c=='A')
               ^
0_0_23567156_26847.cpp:28:16: error: 'new_dir' was not declared in this scope
                new_dir = dir_A[cur_dir];
                ^
0_0_23567156_26847.cpp:28:32: error: 'cur_dir' was not declared in this scope
                new_dir = dir_A[cur_dir];
                                ^
0_0_23567156_26847.cpp:29:16: error: 'x' was not declared in this scope
                x+=dx[new_dir];//新方向X增量
                ^
0_0_23567156_26847.cpp:34:16: error: 'new_dir' was not declared in this scope
                new_dir = dir_V[cur_dir];
                ^
0_0_23567156_26847.cpp:34:32: error: 'cur_dir' was not declared in this scope
                new_dir = dir_V[cur_dir];
                                ^
0_0_23567156_26847.cpp:35:16: error: 'x' was not declared in this scope
                x+=dx[new_dir];
                ^
0_0_23567156_26847.cpp:38:12: error: 'cur_dir' was not declared in this scope
            cur_dir=new_dir;//更新当前方向
            ^
0_0_23567156_26847.cpp:38:20: error: 'new_dir' was not declared in this scope
            cur_dir=new_dir;//更新当前方向
                    ^
0_0_23567156_26847.cpp:39:18: error: 'x' was not declared in this scope
            cout<<x<<" "<<y<<"lineto"<<endl;
                  ^


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-10-31 21:30:04, Gzip enabled