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's wrong? why runtime error (non-zero exit code)? help me!
Posted by Nguyen Van Tuan 24 Dec 2015 21:11
#include <iostream>
using namespace std;
int main()
{
    int a,b;
    cin >>a;
    cin >>b;
    cout<<a+b;
    return 1;
}
Re: what's wrong? why runtime error (non-zero exit code)? help me!
Posted by ToadMonster 24 Dec 2015 21:30
> why runtime error (non-zero exit code)?
> return 1;

LOL
Re: what's wrong? why runtime error (non-zero exit code)? help me!
Posted by Nguyen Van Tuan 24 Dec 2015 21:38
thanks you so muck!
your mean is wrong in "return 1;" so display "Compilation error"
Re: what's wrong? why runtime error (non-zero exit code)? help me!
Posted by Majin Boo 3 Jan 2016 01:12
Every solution send to this page must return 0 as exit code, otherwise you will get "Runtime Error".