记录详情

Accepted

foo.cc: In function 'void Mul(std::vector<int>&, int)':
foo.cc:10:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |         for (int i=0; i<v.size(); i++) {
      |                       ~^~~~~~~~~
foo.cc: In function 'void Add(std::vector<int>&, int, std::vector<int>&, int, std::vector<int>&, int)':
foo.cc:24:31: warning: operation on 'i' may be undefined [-Wsequence-point]
   24 |                 c[i]+=a[i]+b[i++];
      |                              ~^~
foo.cc:26:26: warning: operation on 'i' may be undefined [-Wsequence-point]
   26 |                 c[i]+=a[i++];
      |                         ~^~
foo.cc:28:26: warning: operation on 'i' may be undefined [-Wsequence-point]
   28 |                 c[i]+=b[i++];
      |                         ~^~
foo.cc: At global scope:
foo.cc:35:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   35 | } main() {
      |   ^~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 332.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
A11-3 高精度整数的加法
比赛
2023暑期青少年社团(训练赛)
语言
C++
递交时间
2023-08-16 13:57:43
评测时间
2023-08-16 13:57:43
评测机
分数
100
总耗时
21ms
峰值内存
412.0 KiB