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

where is the problem ... my compiler shows me thats is correct ... :|
Posted by Desislav Savov 2 Jun 2010 17:17
#include<iostream>
using namespace std;

class myclass {
public:
 int a, b;
};

int main()
{
 myclass ob1, ob2;

 ob1.a = 1;
 ob2.b = 5;

 cout << ob1.a + ob2.b << "\n";
 getchar ();
 return 0;
}
Read "Frequently asked questions" (-)
Posted by Sandro (USU) 2 Jun 2010 18:50
Re: where is the problem ... my compiler shows me thats is correct ... :|
Posted by Mehran.R 27 Oct 2010 18:02
exchange "int a,b;" by  long long a,b;
good luck
Re: where is the problem ... my compiler shows me thats is correct ... :|
Posted by ilya_romanenko 15 Jun 2011 11:50


Edited by author 15.06.2011 11:52