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

Show all messages Hide all messages

#include <iostream>
using namespace std;
int main()
{
    int a,b;
    cin >>a;
    cin >>b;
    cout<<a+b;
    return 1;
}
> why runtime error (non-zero exit code)?
> return 1;

LOL
thanks you so muck!
your mean is wrong in "return 1;" so display "Compilation error"
Every solution send to this page must return 0 as exit code, otherwise you will get "Runtime Error".