/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:11: error: too many decimal points in number
  a:array [1..12] of longint;
           ^~~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:3:2: error: 'i' does not name a type
  i,sum:longint;
  ^
/in/foo.cc:4:3: error: found ':' in nested-name-specifier, expected '::'
  s:real;
   ^
/in/foo.cc:4:2: error: 's' does not name a type
  s:real;
  ^
/in/foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:7:2: error: 's' does not name a type
  s:=0;
  ^
/in/foo.cc:8:2: error: expected unqualified-id before 'for'
  for i:=1 to 12 do
  ^~~
/in/foo.cc:11:3: error: 'sum' does not name a type
   sum:=sum+300-a[i];
   ^~~
/in/foo.cc:12:3: error: expected unqualified-id before 'if'
   if sum<0 then
   ^~
/in/foo.cc:15:4: error: 'halt' does not name a type
    halt;
    ^~~~
/in/foo.cc:16:3: error: 'end' does not name a type
   end;
   ^~~
/in/foo.cc:17:3: error: expected unqualified-id before 'if'
   if sum>=100 then
   ^~
/in/foo.cc:19:3: error: 'sum' does not name a type
   sum:=sum mod 100;
   ^~~
/in/foo.cc:20:2: error: 'end' does not name a type
  end;
  ^~~
/in/foo.cc:21:2: error: 's' does not name a type
  s:=s*1.2+sum;
  ^
/in/foo.cc:22:9: error: expected constructor, destructor, or type conversion before '(' token
  writeln(s:0:0);
         ^
/in/foo.cc:23:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
P1096 津津的储蓄计划
语言
C++
递交时间
2017-11-27 16:56:05
评测时间
2017-11-27 16:56:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes