记录详情

Compile Error

foo.cc: In function 'int add(int*, int, int*, int)':
foo.cc:18:27: error: expected ';' before '}' token
   18 |                 a1[i]=y%10
      |                           ^
      |                           ;
   19 |         }
      |         ~                  
foo.cc:12:13: warning: unused variable 'm' [-Wunused-variable]
   12 |         int m;
      |             ^
foo.cc: In function 'int main()':
foo.cc:58:25: error: 'n12' was not declared in this scope; did you mean 'n2'?
   58 |         for(int i=1; i<=n12; i++)
      |                         ^~~
      |                         n2
foo.cc:61:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   61 |         if(m1>=m2)
      |         ^~
foo.cc:63:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   63 |                 output(a1,m);
      |                 ^~~~~~
foo.cc:64:9: error: 'else' without a previous 'if'
   64 |         else
      |         ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A11-3 高精度整数的加法
语言
C++
递交时间
2023-11-11 09:40:05
评测时间
2023-11-11 09:40:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes