ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1000. A+B Problem

What is wrong? Что не так? // С++
Posted by Kelife 7 Jun 2015 21:35
#include <iostream>
using namespace std;

int main()
{
    int a, b;
    cout << "Enter 'a': ";
    cin >> a;
    cout << '\n';

    cout << "Enter 'b': ";
    cin >> b;
    cout <<'\n';

    cout << a + b;

    return 0;
}

Edited by author 07.06.2015 21:38

Edited by author 07.06.2015 21:38
Re: What is wrong? Что не так? // С++
Posted by Kirino 22 Jun 2015 10:59
Don't output "Enter a" or something like that
Re: What is wrong? Что не так? // С++
Posted by Kirino 22 Jun 2015 10:59
Don't output "Enter a" or something like that
Re: What is wrong? Что не так? // С++
Posted by Alex Kosh 15 Jul 2015 21:22
Значения a и b вводятся через пробел, поэтому надо использовать только cin >> a >> b;