fork download
  1. namespace Problem_2.Passed_or_Failed
  2. {
  3. using System;
  4.  
  5. public class Program
  6. {
  7. public static void Main()
  8. {
  9. var grade = double.Parse(Console.ReadLine());
  10.  
  11. if (grade >= 3.00)
  12. {
  13. Console.WriteLine("Passed!");
  14. }
  15.  
  16. else
  17. {
  18. Console.WriteLine("Failed!");
  19. }
  20. }
  21. }
  22. }
Runtime error #stdin #stdout #stderr 0.01s 135168KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: value
  at System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00006] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Double.Parse (System.String s) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Problem_2.Passed_or_Failed.Program.Main () [0x00005] in <223fd782281342abb4b2eb22262e4ea2>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: value
  at System.Number.ParseDouble (System.String value, System.Globalization.NumberStyles options, System.Globalization.NumberFormatInfo numfmt) [0x00006] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Double.Parse (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Double.Parse (System.String s) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at Problem_2.Passed_or_Failed.Program.Main () [0x00005] in <223fd782281342abb4b2eb22262e4ea2>:0