fork(4) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7.  
  8. int v;
  9. int react;
  10. int brake;
  11. int stop;
  12.  
  13. v = int.Parse(Console.ReadLine());
  14.  
  15.  
  16. react = (v / 10) * 3;
  17. brake = (v / 10) * (v / 10);
  18. stop = react + brake;
  19.  
  20. Console.WriteLine(react);
  21. Console.WriteLine(brake);
  22. Console.WriteLine(stop);
  23.  
  24. }
  25. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;
       ^
prog.cpp:3:1: error: expected unqualified-id before 'public'
 public class Test
 ^
stdout
Standard output is empty