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