Submission #00202
ソースコード
ステータス
項目 |
データ |
問題 |
0006 - ナベアツ |
ユーザー名 |
ei2026
|
投稿日時 |
2021-09-16 18:42:19 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
731 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:1: error: ‘import’ does not name a type; did you mean ‘short’?
import java.util.Scanner;
^~~~~~
short
./Main.cpp:2:1: error: ‘import’ does not name a type; did you mean ‘short’?
import java.lang.reflect.Array;
^~~~~~
short
./Main.cpp:3:1: error: ‘import’ does not name a type; did you mean ‘short’?
import java.util.Arrays;
^~~~~~
short
./Main.cpp:6:11: error: expected ‘:’ before ‘static’
public static void main(String[] args) {
^~~~~~~
:
./Main.cpp:6:29: error: ‘String’ has not been declared
public static void main(String[] args) {
^~~~~~
./Main.cpp:6:38: error: expected ‘,’ or ‘...’ before ‘args’
public static void main(String[] args) {
^~~~
./Main.cpp:29:2: error: expected ‘;’ after class definition
}
^
;
./Main.cpp: In static member function ‘static void Main::main(int*)’:
./Main.cpp:7:9: error: ‘Scanner’ was not declared in this scope
Scanner scanner = new Scanner(System.in);
^~~~~~~
./Main.cpp:9:11: error: ‘scanner’ was not declared in this scope
n=scanner.nextInt();
^~~~~~~
./Main.cpp:13:17: error: ‘System’ was not declared in this scope
System.out.println("Yes");
^~~~~~
./Main.cpp:17:25: error: ‘System’ was not declared in this scope
System.out.println("Yes");
^~~~~~
./Main.cpp:26:13: error: ‘System’ was not declared in this scope
System.out.println("No");
^~~~~~
セット
テストケース