/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'program' does not name a type
    1 | program p1056;
      | ^~~~~~~
foo.cc:3:1: error: 'var' does not name a type
    3 | var m:int64;
      | ^~~
foo.cc:5:1: error: 'function' does not name a type; did you mean 'union'?
    5 | function solve(m:int64):int64;
      | ^~~~~~~~
      | union
foo.cc:7:1: error: 'var' does not name a type
    7 | var i,t,d: longint;
      | ^~~
foo.cc:9:5: error: found ':' in nested-name-specifier, expected '::'
    9 | flag: Boolean;
      |     ^
      |     ::
foo.cc:9:1: error: 'flag' does not name a type
    9 | flag: Boolean;
      | ^~~~
foo.cc:11:1: error: 'begin' does not name a type
   11 | begin
      | ^~~~~
foo.cc:19:13: error: 't' does not name a type
   19 | d := 2*m+1; t := 2;
      |             ^
foo.cc:21:1: error: 'i' does not name a type
   21 | i := 1; flag := False;
      | ^
foo.cc:21:9: error: 'flag' does not name a type
   21 | i := 1; flag := False;
      |         ^~~~
foo.cc:23:1: error: 'repeat' does not name a type
   23 | repeat
      | ^~~~~~
foo.cc:29:14: error: 'flag' does not name a type
   29 | solve :=i*m; flag := True;
      |              ^~~~
foo.cc:31:1: error: 'end' does not name a type
   31 | end
      | ^~~
foo.cc:37:17: error: 'flag' does not name a type
   37 | solve := i*m-1; flag := True;
      |                 ^~~~
foo.cc:39:1: error: 'end' does not name a type
   39 | end
      | ^~~
foo.cc:45:1: error: 'i' does not name a type
   45 | i:=i+1;
      | ^
foo.cc:47:1: error: 'until' does not name a type
   47 | until flag;
      | ^~~~~
foo.cc:49:1: error: 'end' does not name a type
   49 | end
      | ^~~
foo.cc:53:1: error: 'begin' does not name a type
   53 | begin
      | ^~~~~
foo.cc:57:8: error: expected constructor, destructor, or type conversion before '(' token
   57 | writeln(solve(m));
      |        ^
foo.cc:59:1: error: 'end' does not name a type
   59 | end.
      | ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1506 翻硬币
语言
C++
递交时间
2023-08-01 11:44:05
评测时间
2023-08-01 11:44:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes