记录详情

Compile Error

/in/foo.cc:3:13: error: too many decimal points in number
   a,b:array[0..10000]of integer;
             ^~~~~~~~
/in/foo.cc:6:16: warning: character constant too long for its type
   assign(input,'train.in'); reset(input);
                ^~~~~~~~~~
/in/foo.cc:7:17: warning: character constant too long for its type
   assign(output,'train.out'); rewrite(output);
                 ^~~~~~~~~~~
/in/foo.cc:21:23: warning: multi-character character constant [-Wmultichar]
   if k=0 then writeln('YES')
                       ^~~~~
/in/foo.cc:22:16: warning: multi-character character constant [-Wmultichar]
   else writeln('NO');
                ^~~~
/in/foo.cc:1:1: error: 'var' does not name a type
 var
 ^~~
/in/foo.cc:3:3: error: 'a' does not name a type
   a,b:array[0..10000]of integer;
   ^
/in/foo.cc:5:1: error: 'begin' does not name a type
 begin
 ^~~~~
/in/foo.cc:6:34: error: expected constructor, destructor, or type conversion before '(' token
   assign(input,'train.in'); reset(input);
                                  ^
/in/foo.cc:7:9: error: expected constructor, destructor, or type conversion before '(' token
   assign(output,'train.out'); rewrite(output);
         ^
/in/foo.cc:7:38: error: expected constructor, destructor, or type conversion before '(' token
   assign(output,'train.out'); rewrite(output);
                                      ^
/in/foo.cc:8:9: error: expected constructor, destructor, or type conversion before '(' token
   readln(n);
         ^
/in/foo.cc:9:3: error: expected unqualified-id before 'for'
   for i:=1 to n do
   ^~~
/in/foo.cc:11:3: error: expected unqualified-id before 'for'
   for i:=1 to n do
   ^~~
/in/foo.cc:16:10: error: expected constructor, destructor, or type conversion before '(' token
       inc(l);
          ^
/in/foo.cc:17:7: error: 'b' does not name a type
       b[k]:=l;
       ^
/in/foo.cc:18:5: error: 'end' does not name a type
     end;
     ^~~
/in/foo.cc:19:8: error: expected constructor, destructor, or type conversion before '(' token
     dec(k);
        ^
/in/foo.cc:20:3: error: 'end' does not name a type
   end;
   ^~~
/in/foo.cc:21:3: error: expected unqualified-id before 'if'
   if k=0 then writeln('YES')
   ^~
/in/foo.cc:23:8: error: expected constructor, destructor, or type conversion before '(' token
   close(input); close(output);
        ^
/in/foo.cc:23:22: error: expected constructor, destructor, or type conversion before '(' token
   close(input); close(output);
                      ^
/in/foo.cc:24:1: error: 'end' does not name a type
 end.
 ^~~

信息

递交者
类型
递交
题目
车厢调度(train)
题目数据
下载
语言
C++
递交时间
2018-07-19 12:54:53
评测时间
2018-07-19 12:54:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes