a005.
Eva 的回家作業
--
POJ
| From: [114.42.197.55] |
發表日期
:
2013-04-20 18:02
#include<iostream>
#include <vector>
using namespace std;
int main() {
int t,input;
vector<vector<int>> numbers;
vector<int> inputnum;
cin >>t;
for (int i=0;i<t;i++){
for (int j=0;j<4;j++){
cin >>input;
inputnum.push_back(input);
}
if(inputnum[1]-inputnum[0]==inputnum[3]-inputnum[2])
inputnum.push_back(inputnum[3]+inputnum[2]-inputnum[1]);
else if(inputnum[1]/inputnum[0]==inputnum[3]/inputnum[2])
inputnum.push_back(inputnum[3]*(inputnum[1]/inputnum[0]));
numbers.push_back(inputnum);
inputnum.clear();
}
for (int i=0;i<t;i++){
for (int j=0;j<5;j++){
cout<<numbers[i][j]<<" ";
}
cout<<endl;
}
return 0;
}
CE ()
編譯錯誤
code_1457988.cpp: In function ‘int main()’:
code_1457988.cpp:9: error: ‘>>’ should be ‘> >’ within a nested template argument list
一直搞不懂是哪裡出錯