/ XMU_ACM /

记录详情

Compile Error

/in/foo.c: In function 'run':
/in/foo.c:37:14: warning: unused variable 'p' [-Wunused-variable]
      int i,j,p;
              ^
/in/foo.c: In function 'main':
/in/foo.c:88:15: warning: passing argument 1 of 'bitmapset' makes pointer from integer without a cast [-Wint-conversion]
     bitmapset(hashes(a[0]));
               ^~~~~~
/in/foo.c:16:6: note: expected 'char *' but argument is of type 'int'
 void bitmapset(char *c,int x)
      ^~~~~~~~~
/in/foo.c:88:5: error: too few arguments to function 'bitmapset'
     bitmapset(hashes(a[0]));
     ^~~~~~~~~
/in/foo.c:16:6: note: declared here
 void bitmapset(char *c,int x)
      ^~~~~~~~~
/in/foo.c:101:36: warning: passing argument 1 of 'bitmapcheck' makes pointer from integer without a cast [-Wint-conversion]
                     if(bitmapcheck(hashes(a[j])))
                                    ^~~~~~
/in/foo.c:28:5: note: expected 'char *' but argument is of type 'int'
 int bitmapcheck(char *c,int x)
     ^~~~~~~~~~~
/in/foo.c:101:24: error: too few arguments to function 'bitmapcheck'
                     if(bitmapcheck(hashes(a[j])))
                        ^~~~~~~~~~~
/in/foo.c:28:5: note: declared here
 int bitmapcheck(char *c,int x)
     ^~~~~~~~~~~
/in/foo.c:104:36: warning: passing argument 1 of 'bitmapset' makes pointer from integer without a cast [-Wint-conversion]
                          bitmapset(hashes(a[j]));
                                    ^~~~~~
/in/foo.c:16:6: note: expected 'char *' but argument is of type 'int'
 void bitmapset(char *c,int x)
      ^~~~~~~~~
/in/foo.c:104:26: error: too few arguments to function 'bitmapset'
                          bitmapset(hashes(a[j]));
                          ^~~~~~~~~
/in/foo.c:16:6: note: declared here
 void bitmapset(char *c,int x)
      ^~~~~~~~~
/in/foo.c:84:17: warning: unused variable 'l' [-Wunused-variable]
     int i,j,k,r,l;
                 ^
/in/foo.c: In function 'run':
/in/foo.c:79:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
八数码
语言
C
递交时间
2018-10-18 11:18:52
评测时间
2018-10-18 11:18:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes