← Back to topics
Topic

exit code not zero

v
vasja
I get this message when i submit , i even tried submitting a previously correct submission but it's the same. What's wrong ? Will it be fixed soon?
a
adminModerator
try it now
v
vasja
it's fixed 10x
L
LostInC
me have the same problem in C
m
mbalunovic
1) You need return 0 at the end of code.
2) Don't output any messages in your program
3) You need to read only two numbers, not 4 like you do...

code:


#include <cstdio>
#include <iostream>

using namespace std;

int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
return 0;
}

L
LostInC
10x i just started to learn this so i have a looooong way to go.
j
joycpu
I have the same problem with pascal. What's wrong?
p
picsel
You have to read from standard input/output.
Don't use "datoteka"
b
bojana92
how do we read from standard input/output.
In pascal do we assign(d,'input.in');
or is there something else
A
Al3kSaNdaR
No, just use read / readln and write / writeln. Don't assign any file...
g
gigac
Why I get Exit Code Not Zero in the Task Karika :(((((
G
Gorgi...
Put LongInt instead of integer.
g
gigac
Thanks a lot... I got all the tests :) :)