fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. int x = 1;
  8.  
  9. switch (x)
  10. {
  11. case 1: break;
  12. case 1: break;
  13. }
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(12,7): error CS0152: The label `case 1:' already occurs in this switch statement
prog.cs(11,7): (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty