Code:
#include <iostream>
using namespace std;
int main(){
int num = 0, num2 = 0;
while (cin >> num >> num2) {
cout << num + num2 << endl;
}
}
Error:
Code:
#include
using namespace std;
int main(){
int num = 0, num2 = 0;
while (cin >> num >> num2) {
cout << num + num2 << endl;
}
}
Error:
您的答案為: 683344 ...略 正確答案為: 6
Code:
#include
using namespace std;
int main(){
int num = 0, num2 = 0;
while (cin >> num >> num2) {
cout << num + num2 << endl;
}
}
Error:
您的答案為: 683344 ...略 正確答案為: 6
然後又不能加<<endl;
#include <iostream>
using namespace std;
int main(){
int num = 0, num2 = 0;
while (cin >> num >> num2) {
cout << num + num2 << endl;
}
}
這個code我有過耶~~~