fork(2) download
  1. # your code goes here
  2. ilosc_dzialan = input()
  3. n = 0
  4. for i in range(int(ilosc_dzialan)):
  5. i = int(input())
  6. n = n + i
  7. print(n)
Runtime error #stdin #stdout #stderr 0.01s 27712KB
stdin
2
5
1 2 3 4 5
2
-100 100
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 5, in <module>
ValueError: invalid literal for int() with base 10: '1 2 3 4 5'