fork download
  1. namespace Problem_1.Passed
  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. }
  17. }
Runtime error #stdin #stdout #stderr 0s 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_1.Passed.Program.Main () [0x00005] in <3565163249c049e287b2e51a55665dd0>: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_1.Passed.Program.Main () [0x00005] in <3565163249c049e287b2e51a55665dd0>:0