/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:14:2: error: 'mamset' was not declared in this scope
  mamset (c,0,sizeof(c));
  ^~~~~~
foo.cc:14:2: note: suggested alternative: 'memset'
  mamset (c,0,sizeof(c));
  ^~~~~~
  memset
foo.cc:16:16: warning: left operand of comma operator has no effect [-Wunused-value]
  for(int i=0;i,la;i++){
                ^~
foo.cc:18:10: error: invalid operands of types 'int' and 'int [101]' to binary 'operator*'
    f=a[i]*b{j};jw=f/10;f%10;//处理逐位乘,记录乘积和进位
      ~~~~^~
foo.cc:18:25: warning: statement has no effect [-Wunused-value]
    f=a[i]*b{j};jw=f/10;f%10;//处理逐位乘,记录乘积和进位
                        ~^~~
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",sa);
  ~~~~~^~~~~~~~~
foo.cc:7:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%s",sa);
  ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1040 高精度乘法
语言
C++
递交时间
2021-11-27 17:57:16
评测时间
2021-11-27 17:57:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes