fork download
  1. using System;
  2.  
  3. class Program
  4. {
  5. interface ISample
  6. {
  7. void Start();
  8. }
  9.  
  10. class Sample : ISample
  11. {
  12. public void Start()
  13. {
  14. Console.WriteLine("1");
  15. }
  16. }
  17.  
  18. public static void Main(string[] args)
  19. {
  20. ISample smpl=new Sample;
  21. smpl.Start();
  22. }
  23. }
  24.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(20,28): error CS1526: Unexpected symbol `;', expecting `(', `[', or `{'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty