/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'var' does not name a type; did you mean 'char'?
 var
 ^~~
 char
foo.cc:3:1: error: 'n' does not name a type
 n,i,ans:longint;
 ^
foo.cc:4:1: error: 'begin' does not name a type
 begin
 ^~~~~
foo.cc:6:1: error: expected unqualified-id before 'while'
 while not(eof) do
 ^~~~~
foo.cc:9:1: error: 's' does not name a type
 s:=s+s1;
 ^
foo.cc:10:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:11:1: error: 's' does not name a type
 s:=s+s;min:='{';
 ^
foo.cc:11:8: error: 'min' does not name a type
 s:=s+s;min:='{';
        ^~~
foo.cc:12:1: error: expected unqualified-id before 'for'
 for i:=1 to n do
 ^~~
foo.cc:15:1: error: expected unqualified-id before 'if'
 if p<min then
 ^~
foo.cc:18:1: error: 'ans' does not name a type
 ans:=i;
 ^~~
foo.cc:19:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:20:1: error: 'end' does not name a type; did you mean 'enum'?
 end;
 ^~~
 enum
foo.cc:21:8: error: expected constructor, destructor, or type conversion before '(' token
 writeln(ans-1);
        ^
foo.cc:22:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1437 简单的口令
语言
C++
递交时间
2021-03-27 19:11:59
评测时间
2021-03-27 19:11:59
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes