fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int ile;
  8. int wynik = 0;
  9. while (((ile = Convert.ToInt32(Console.ReadLine()))) != null)
  10. {
  11. wynik += ile;
  12. Console.WriteLine(wynik);
  13. }
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
6
8
-3
compilation info
prog.cs(9,20): warning CS0472: The result of comparing value type `int' with null is always `true'
prog.cs(11,26): error CS0165: Use of unassigned local variable `ile'
Compilation failed: 1 error(s), 1 warnings
stdout
Standard output is empty