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_32849464_10298.cpp: In function 'int way(int, int)':
0_0_32849464_10298.cpp:11:5: error: 'x_y1' was not declared in this scope
     x_y1 = stoi(s1) + stoi(s2); //stoi£¬intתstring
     ^
0_0_32849464_10298.cpp:12:5: error: 'x_y2' was not declared in this scope
     x_y2 = stoi(s1) - stoi(s2);
     ^
0_0_32849464_10298.cpp: In function 'int main()':
0_0_32849464_10298.cpp:25:17: error: 'x_y1' was not declared in this scope
         cout << x_y1 << " " << x_y2 << endl;
                 ^
0_0_32849464_10298.cpp:25:32: error: 'x_y2' was not declared in this scope
         cout << x_y1 << " " << x_y2 << endl;
                                ^
0_0_32849464_10298.cpp:27:5: error: 'else' without a previous 'if'
     else if(x < 0 && y >= 0)
     ^
0_0_32849464_10298.cpp:27:13: error: 'x' was not declared in this scope
     else if(x < 0 && y >= 0)
             ^
0_0_32849464_10298.cpp:27:22: error: 'y' was not declared in this scope
     else if(x < 0 && y >= 0)
                      ^
0_0_32849464_10298.cpp:30:17: error: 'x_y2' was not declared in this scope
         cout << x_y2 << " " << 0 - x_y1 << endl;
                 ^
0_0_32849464_10298.cpp:30:36: error: 'x_y1' was not declared in this scope
         cout << x_y2 << " " << 0 - x_y1 << endl;
                                    ^
0_0_32849464_10298.cpp:35:17: error: 'x_y2' was not declared in this scope
         cout << x_y2 << " " << x_y1 << endl;
                 ^
0_0_32849464_10298.cpp:35:32: error: 'x_y1' was not declared in this scope
         cout << x_y2 << " " << x_y1 << endl;
                                ^
0_0_32849464_10298.cpp:40:21: error: 'x_y1' was not declared in this scope
         cout << 0 - x_y1 << " " << 0 - x_y2 << endl;
                     ^
0_0_32849464_10298.cpp:40:40: error: 'x_y2' was not declared in this scope
         cout << 0 - x_y1 << " " << 0 - x_y2 << 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-05 22:03:02, Gzip enabled