Submission #161797


Source Code Expand

using System;
class Program
{
    static void Main(string[] args)
    {
        int n = int.Parse(Console.ReadLine());
        n--;
        Console.WriteLine(n);
    }
}

Submission Info

Submission Time
Task A - 植木算
User shimau6
Language C++ (G++ 4.6.4)
Score 0
Code Size 178 Byte
Status CE

Compile Error

./Main.cpp:1:7: error: expected nested-name-specifier before ‘System’
./Main.cpp:1:7: error: ‘System’ has not been declared
./Main.cpp:4:22: error: ‘string’ has not been declared
./Main.cpp:4:31: error: expected ‘,’ or ‘...’ before ‘args’
./Main.cpp:10:1: error: expected ‘;’ after class definition
./Main.cpp: In static member function ‘static void Program::Main(int*)’:
./Main.cpp:6:17: error: expected primary-expression before ‘int’
./Main.cpp:6:17: error: expected ‘,’ or ‘;’ before ‘int’
./Main.cpp:8:9: error: ‘Console’ was not declared in this scope