/ Vijos /

记录详情

Compile Error

foo.cc:1:1: error: 'program' does not name a type
 program hello2; 
 ^~~~~~~
foo.cc:2:1: error: 'var' does not name a type; did you mean 'char'?
 var 
 ^~~
 char
foo.cc:4:6: error: found ':' in nested-name-specifier, expected '::'
     i: integer; 
      ^
foo.cc:4:5: error: 'i' does not name a type
     i: integer; 
     ^
foo.cc:5:5: error: 'd' does not name a type
     d: double;
     ^
foo.cc:7:1: error: 'procedure' does not name a type
 procedure Foo(c: char; var i: integer; d: double);
 ^~~~~~~~~
foo.cc:7:24: error: 'var' does not name a type; did you mean 'char'?
 procedure Foo(c: char; var i: integer; d: double);
                        ^~~
                        char
foo.cc:7:40: error: 'd' does not name a type
 procedure Foo(c: char; var i: integer; d: double);
                                        ^
foo.cc:8:1: error: 'begin' does not name a type
 begin 
 ^~~~~
foo.cc:10:5: error: 'i' does not name a type
     i := i + 255;
     ^
foo.cc:11:5: error: 'd' does not name a type
     d := d + 1.5;
     ^
foo.cc:12:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(c);
            ^
foo.cc:13:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(i);
            ^
foo.cc:14:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(d);
            ^
foo.cc:15:1: error: 'end' does not name a type; did you mean 'enum'?
 end; 
 ^~~
 enum
foo.cc:17:1: error: 'begin' does not name a type
 begin 
 ^~~~~
foo.cc:19:5: error: 'i' does not name a type
     i := 233;
     ^
foo.cc:20:5: error: 'd' does not name a type
     d := 1.5;
     ^
foo.cc:21:8: error: expected constructor, destructor, or type conversion before '(' token
     Foo(i, d);
        ^
foo.cc:22:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(c);
            ^
foo.cc:23:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(i);
            ^
foo.cc:24:12: error: expected constructor, destructor, or type conversion before '(' token
     writeln(d);
            ^
foo.cc:25:1: error: 'end' does not name a type; did you mean 'enum'?
 end.
 ^~~
 enum

自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C++
递交时间
2020-06-05 11:14:50
评测时间
2020-06-05 11:14:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes