/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:25: error: invalid conversion from 'int' to 'void*' [-fpermissive]
  memset(add,0,sizeof add);
                         ^
In file included from /usr/include/c++/6/cstring:42:0,
                 from /in/foo.cc:4:
/usr/include/string.h:62:14: note:   initializing argument 1 of 'void* memset(void*, int, size_t)'
 extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
              ^~~~~~
/in/foo.cc:13:10: error: invalid types 'int[int]' for array subscript
   b+=s1[a];
          ^
/in/foo.cc:14:3: error: 'c' was not declared in this scope
   c+=s2[a];
   ^
/in/foo.cc:14:10: error: invalid types 'int[int]' for array subscript
   c+=s2[a];
          ^
/in/foo.cc:16:14: error: 'sort' was not declared in this scope
  sort(s3,s3+n);
              ^
/in/foo.cc:17:10: error: 'c' was not declared in this scope
  x=abs(b-c);
          ^
/in/foo.cc:24:11: error: 'X' was not declared in this scope
    if(add>X)
           ^
/in/foo.cc:26:17: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    else if(add=x){
                 ^

信息

递交者
类型
递交
题目
P1222 等值拉面
语言
C++
递交时间
2018-09-12 21:13:03
评测时间
2018-09-12 21:13:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes