fork download
  1. using static System.Console;
  2.  
  3. public class Program {
  4. public static void Main() {
  5. var soma = 0;
  6. foreach (var i in { 3, 7, -6, 10, -1, 0, -1, 4}) if (i > 0) soma++;
  7. WriteLine("Soma: " + soma);
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/413495/101
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(6,26): error CS1525: Unexpected symbol `{'
prog.cs(6,29): error CS1525: Unexpected symbol `,'
prog.cs(6,32): error CS1525: Unexpected symbol `,'
prog.cs(6,36): error CS1525: Unexpected symbol `,'
prog.cs(6,40): error CS1525: Unexpected symbol `,'
prog.cs(6,44): error CS1525: Unexpected symbol `,'
prog.cs(6,47): error CS1525: Unexpected symbol `,'
prog.cs(6,51): error CS1525: Unexpected symbol `,'
prog.cs(6,55): error CS1002: ; expected
prog.cs(6,55): error CS1525: Unexpected symbol `)'
Compilation failed: 10 error(s), 0 warnings
stdout
Standard output is empty