0_0_28849563_12675.cpp:1:3: error: invalid preprocessing directive #
# 无法正常排序
^
0_0_28849563_12675.cpp:2:5: error: stray '@' in program
my @s = [2443,5,33, 90, -9, 2, 764];
^
0_0_28849563_12675.cpp:3:5: error: stray '@' in program
say @s.sort; # 2443 5 33 90 -9 2 764
^
0_0_28849563_12675.cpp:3:18: error: stray '#' in program
say @s.sort; # 2443 5 33 90 -9 2 764
^
0_0_28849563_12675.cpp:4:5: error: stray '@' in program
say @s.WHAT; # (Array)
^
0_0_28849563_12675.cpp:4:18: error: stray '#' in program
say @s.WHAT; # (Array)
^
0_0_28849563_12675.cpp:5:5: error: stray '@' in program
say @s.perl; # [[2443, 5, 33, 90, -9, 2, 764]]<>
^
0_0_28849563_12675.cpp:5:18: error: stray '#' in program
say @s.perl; # [[2443, 5, 33, 90, -9, 2, 764]]<>
^
0_0_28849563_12675.cpp:7:3: error: invalid preprocessing directive #
# 正常排序
^
0_0_28849563_12675.cpp:9:18: error: stray '#' in program
say $array.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:10:18: error: stray '#' in program
say $array.WHAT; # (Array)
^
0_0_28849563_12675.cpp:11:18: error: stray '#' in program
say $array.perl; # [2443, 5, 33, 90, -9, 2, 764]
^
0_0_28849563_12675.cpp:13:5: error: stray '@' in program
my @s = (2443,5,33,90,-9,2,764);
^
0_0_28849563_12675.cpp:14:5: error: stray '@' in program
say @s.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:14:18: error: stray '#' in program
say @s.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:15:18: error: stray '#' in program
say $array.WHAT; # (Array)
^
0_0_28849563_12675.cpp:16:5: error: stray '@' in program
say @s.perl; # [2443, 5, 33, 90, -9, 2, 764]<>
^
0_0_28849563_12675.cpp:16:18: error: stray '#' in program
say @s.perl; # [2443, 5, 33, 90, -9, 2, 764]<>
^
0_0_28849563_12675.cpp:2:1: error: 'my' does not name a type
my @s = [2443,5,33, 90, -9, 2, 764];
^
0_0_28849563_12675.cpp:3:1: error: 'say' does not name a type
say @s.sort; # 2443 5 33 90 -9 2 764
^
0_0_28849563_12675.cpp:3:20: error: expected unqualified-id before numeric constant
say @s.sort; # 2443 5 33 90 -9 2 764
^
0_0_28849563_12675.cpp:5:1: error: expected constructor, destructor, or type conversion before 'say'
say @s.perl; # [[2443, 5, 33, 90, -9, 2, 764]]<>
^
0_0_28849563_12675.cpp:5:22: error: expected ']' before numeric constant
say @s.perl; # [[2443, 5, 33, 90, -9, 2, 764]]<>
^
0_0_28849563_12675.cpp:8:40: error: declaration does not declare anything [-fpermissive]
my $array = [2443,5,33, 90, -9, 2, 764];
^
0_0_28849563_12675.cpp:9:1: error: 'say' does not name a type
say $array.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:9:21: error: expected unqualified-id before '-' token
say $array.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:11:1: error: expected constructor, destructor, or type conversion before 'say'
say $array.perl; # [2443, 5, 33, 90, -9, 2, 764]
^
0_0_28849563_12675.cpp:11:20: error: expected unqualified-id before '[' token
say $array.perl; # [2443, 5, 33, 90, -9, 2, 764]
^
0_0_28849563_12675.cpp:14:1: error: 'say' does not name a type
say @s.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:14:20: error: expected unqualified-id before '-' token
say @s.sort; # -9 2 5 33 90 764 2443
^
0_0_28849563_12675.cpp:16:1: error: expected constructor, destructor, or type conversion before 'say'
say @s.perl; # [2443, 5, 33, 90, -9, 2, 764]<>
^
0_0_28849563_12675.cpp:16:20: error: expected unqualified-id before '[' token
say @s.perl; # [2443, 5, 33, 90, -9, 2, 764]<>
^
|