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

Exception in C++
Posted by UdSU: Abizyaev, Bikov, Urbanovich 1 Nov 2007 12:23
Why my program get Crash?

#include <stdio.h>
int main(){
    int a, b;
    scanf("%d %d", &a, &b);
    try{
        throw 1;
    }
    catch(int i){
        i++;
    }
    printf("%d", a + b);
    return 0;
}
Re: Exception in C++
Posted by Alexey Procenko 7 Dec 2007 03:52
You can not use any exceptions in your program. This is a mistake. Read FAQ first.
No subject
Posted by SuperLight 7 Dec 2007 18:43
no message
Boboyev A+B
Posted by Sunedge 28 Nov 2008 09:48
#include <iostream.h>
int main()
{
   float a, b;
   cin >> a >> b;
   cout << a + b << endl;
   return 0;
}