/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:28:41: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
   scanf("%d %s",&que[i].dir,&que[i].name);
                                         ^
/in/foo.cc:28:41: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[200]' [-Wformat=]
/in/foo.cc:34:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
   scanf("%d %d",&flag,&x);//flag=LL();x=LL();
                         ^
/in/foo.cc:51:28: error: invalid operands of types '__gnu_cxx::__enable_if<true, double>::__type {aka double}' and 'int' to binary 'operator%'
   if(pos<1){ pos=n-abs(pos)%n;}
                    ~~~~~~~~^~
/in/foo.cc:20:6: warning: unused variable 'j' [-Wunused-variable]
  int j,k;
      ^
/in/foo.cc:20:8: warning: unused variable 'k' [-Wunused-variable]
  int j,k;
        ^

信息

递交者
类型
递交
题目
P2003 玩具谜题
语言
C++
递交时间
2017-12-30 19:26:01
评测时间
2017-12-30 19:26:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes