Submission #25354
ソースコード
ステータス
項目 |
データ |
問題 |
0791 - CombNafの参加者数 |
ユーザー名 |
ei1711
|
投稿日時 |
2017-08-25 11:28:53 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
503 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:7: error: expected nested-name-specifier before ‘System’
using System;
^~~~~~
./Main.cpp:2:7: error: expected nested-name-specifier before ‘System’
using System.Collections.Generic;
^~~~~~
./Main.cpp:3:7: error: expected nested-name-specifier before ‘System’
using System.Linq;
^~~~~~
./Main.cpp:4:7: error: expected nested-name-specifier before ‘System’
using System.Text;
^~~~~~
./Main.cpp:10:26: error: ‘string’ has not been declared
static void Main(string[] args)
^~~~~~
./Main.cpp:10:35: error: expected ‘,’ or ‘...’ before ‘args’
static void Main(string[] args)
^~~~
./Main.cpp:21:6: error: expected ‘;’ after class definition
}
^
;
./Main.cpp: In static member function ‘static void Comb::Program::Main(int*)’:
./Main.cpp:13:13: error: ‘string’ was not declared in this scope
string[] num = Console.ReadLine().Split(' ');
^~~~~~
./Main.cpp:13:13: note: suggested alternative: ‘struct’
string[] num = Console.ReadLine().Split(' ');
^~~~~~
struct
./Main.cpp:13:20: error: expected primary-expression before ‘]’ token
string[] num = Console.ReadLine().Split(' ');
^
./Main.cpp:14:17: error: expected primary-expression before ‘int’
a = int.Parse(num[0]);
^~~
./Main.cpp:15:17: error: expected primary-expression before ‘int’
b = int.Parse(num[1]);
^~~
./Main.cpp:17:13: error: ‘Console’ was not declared in this scope
Console.WriteLine("{0}", a);
^~~~~~~
セット
テストケース