A + B

Simple task for test laguages

IN

1
2

OUT

3

IN

-2
4

OUT

2

IN

0
10

OUT

10
Login to submit solution


84 symbols erlang failed test 1 Code error

Wed Sep 4 09:42:11 2013 avkhozov
main(_) ->
        {ok, [A,B]} = io:fread("","~d~d"),
        io:fwrite("~p",[A+B]).
35 symbols python3 failed test 1 Code error

File "./code", line 2 ^ SyntaxError: unexpected EOF while parsing

Fri Mar 21 19:48:13 2014 plain_alex
print(int(input(""))+int(input(""))
27 symbols python3 failed test 1 Code error

Traceback (most recent call last): File "./code", line 1, in <module> print(intput('')+input('')) NameError: name 'intput' is not defined

Fri Mar 21 19:50:38 2014 plain_alex
print(intput('')+input(''))
13 symbols bash failed test 1 Code error

./code: line 1: bc: command not found

Mon May 26 13:27:28 2014 ledyba
cat|echo +|bc
15 symbols bash failed test 1 Code error

./code: line 1: dc: command not found

Mon May 26 13:41:17 2014 ledyba
(cat;echo +)|dc
19 symbols perl failed test 1 Code error

Can't modify constant item in scalar assignment at ./code line 2, near ") print" syntax error at ./code line 2, near ") print" Execution of ./code aborted due to compilation errors.

Tue Sep 2 03:21:31 2014 LewisCornwall
i=input()
print i+i
19 symbols python2 failed test 1 Wrong answer
2
instead of
3
Tue Sep 2 03:22:17 2014 LewisCornwall
i=input()
print i+i
25 symbols python3 failed test 1 Wrong answer
2
instead of
3
Tue Sep 2 03:23:22 2014 LewisCornwall
i=int(input())
print(i+i)
11 symbols bash failed test 1 Code error

./code: line 1: bc: command not found

Mon Jul 25 03:10:24 2016 hidefromkgb
pr -t2s+|bc

View all solutions