Submission #1386449
Source Code Expand
using System; class Program { static void main(string[] args) { int H1=int.Parse(Console.ReadLine()); int H2=int.Parse(Console.ReadLine()); Console.WriteLine(H1-H2); } }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | kantanfoo100 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 189 Byte |
Status | CE |
Compile Error
./Main.cpp:1:7: error: expected nested-name-specifier before ‘System’ using System; ^ ./Main.cpp:5:19: error: ‘string’ has not been declared static void main(string[] args) ^ ./Main.cpp:5:28: error: expected ‘,’ or ‘...’ before ‘args’ static void main(string[] args) ^ ./Main.cpp:11:1: error: expected ‘;’ after class definition } ^ ./Main.cpp: In static member function ‘static void Program::main(int*)’: ./Main.cpp:7:10: error: expected primary-expression before ‘int’ int H1=int.Parse(Console.ReadLine()); ^ ./Main.cpp:8:10: error: expected primary-expression before ‘int’ int H2=int.Parse(Console.ReadLine()); ^ ./Main.cpp:9:3: error: ‘Console’ was not declared in this scope Console.WriteLine(H1-H2); ^