64,676
社区成员
发帖
与我相关
我的任务
分享
//main.cpp
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int a, b;
while(std::cin >> a >> b)
{
std::cout << a + b << std::endl;
}
return 0;
}
g++ -o main.exe main.cpp
main.exe < input.txt > output.txt