Submission #3340357


Source Code Expand

(1)int*ptr;
(2)char*ptr;
(3)int**ptr;
(4)int(*ptr)[3];
(5)int*(*ptr)[4];

Submission Info

Submission Time
Task J - 指さし
User luogu_bot5
Language C++ (GCC 5.4.1)
Score 0
Code Size 72 Byte
Status CE

Compile Error

./Main.cpp:1:2: error: expected unqualified-id before numeric constant
 (1)int*ptr;
  ^
./Main.cpp:1:2: error: expected ‘)’ before numeric constant
./Main.cpp:2:2: error: expected unqualified-id before numeric constant
 (2)char*ptr;
  ^
./Main.cpp:2:2: error: expected ‘)’ before numeric constant
./Main.cpp:3:2: error: expected unqualified-id before numeric constant
 (3)int**ptr;
  ^
./Main.cpp:3:2: error: expected ‘)’ before numeric constant
./Main.cpp:4:2: error: expected unqualified-id before numeric constant
 (4)int(*ptr)[3];
  ^
./Main.cpp:4:2: error: expected ‘)’ before numeric constant
./Main.cpp:5:2: error: expected unqualified-id before numeric constant
 (5)int*(*ptr)[4];
  ^
./Main.cpp:5:2: error: expected ‘)’ before numeric constant