/ Vijos /

记录详情

Compile Error

/in/foo.cc:46:2: error: expected initializer before 'n'
  n=read();m=read();
  ^
/in/foo.cc:46:11: error: 'm' does not name a type
  n=read();m=read();
           ^
/in/foo.cc:47:2: error: 'maxl' does not name a type
  maxl=-1;minn=10000001;
  ^~~~
/in/foo.cc:47:10: error: 'minn' does not name a type
  maxl=-1;minn=10000001;
          ^~~~
/in/foo.cc:48:2: error: expected unqualified-id before 'for'
  for(int i=1;i<=n;i++)
  ^~~
/in/foo.cc:48:14: error: 'i' does not name a type
  for(int i=1;i<=n;i++)
              ^
/in/foo.cc:48:19: error: 'i' does not name a type
  for(int i=1;i<=n;i++)
                   ^
/in/foo.cc:50:2: error: expected unqualified-id before 'for'
  for(int i=1;i<=n;i++)
  ^~~
/in/foo.cc:50:14: error: 'i' does not name a type
  for(int i=1;i<=n;i++)
              ^
/in/foo.cc:50:19: error: 'i' does not name a type
  for(int i=1;i<=n;i++)
                   ^
/in/foo.cc:62:8: error: expected constructor, destructor, or type conversion before '(' token
  printf("%d\n%d",minn,maxl);
        ^
/in/foo.cc:63:2: error: expected unqualified-id before 'return'
  return 0;
  ^~~~~~
/in/foo.cc:64:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1218 数字游戏
语言
C++
递交时间
2017-10-20 08:35:50
评测时间
2017-10-20 08:35:50
评测机
分数
0
总耗时
441ms
峰值内存
37.684 MiB