/ Vijos /

记录详情

Compile Error

/in/foo.cc:5:10: error: too many decimal points in number
 st:array[1..50] of string;
          ^~~~~
/in/foo.cc:17:9: warning: character constant too long for its type
 writeln('Nobody can win!');
         ^~~~~~~~~~~~~~~~~
/in/foo.cc:25:15: warning: character constant too long for its type
 writeln(st[k],' can win!');
               ^~~~~~~~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:5:3: error: found ':' in nested-name-specifier, expected '::'
 st:array[1..50] of string;
   ^
/in/foo.cc:5:1: error: 'st' does not name a type
 st:array[1..50] of string;
 ^~
/in/foo.cc:7:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:11:7: error: expected constructor, destructor, or type conversion before '(' token
 readln(n,m);
       ^
/in/foo.cc:13:1: error: expected unqualified-id before 'for'
 for i:= 1 to o do readln(st[i]);
 ^~~
/in/foo.cc:15:1: error: expected unqualified-id before 'if'
 if (n*m= 0) or (n*m mod 8 0) then begin
 ^~
/in/foo.cc:19:1: error: 'halt' does not name a type
 halt;
 ^~~~
/in/foo.cc:21:1: error: 'end' does not name a type
 end;
 ^~~
/in/foo.cc:23:1: error: 'k' does not name a type
 k:= (n*m div 4-1) mod o+1;
 ^
/in/foo.cc:25:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(st[k],' can win!');
        ^
/in/foo.cc:27:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1582 笨笨的L阵游戏
语言
C++
递交时间
2021-05-29 22:16:09
评测时间
2021-05-29 22:16:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes