/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'std::vector<int> mul(std::vector<int>&, int)':
foo.cc:9:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for(int i=0;i<a.size()||t;i++){
      |              ~^~~~~~~~~
foo.cc:10:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |   if(i<a.size()) t+=a[i]*b;
      |      ~^~~~~~~~~
foo.cc: In function 'std::vector<int> add(std::vector<int>&, std::vector<int>&)':
foo.cc:21:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |  while(i<a.size()||j<b.size()){
      |        ~^~~~~~~~~
foo.cc:21:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   21 |  while(i<a.size()||j<b.size()){
      |                    ~^~~~~~~~~
foo.cc:23:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |   if(i<a.size()) tmp+=a[i++];
      |      ~^~~~~~~~~
foo.cc:24:7: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   24 |   if(j<b.size()) tmp+=b[j++];
      |      ~^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   33 |  scanf("%d %d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~~
foo.cc:37:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   37 |    scanf("%d",&a[i][j]);
      |    ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Wrong Answer Read 28249708, expect 29351864. 2ms 512.0 KiB
#4 Wrong Answer Read 48688979735110, expect 53477486356314. 2ms 384.0 KiB
#5 Wrong Answer Read 46896343693358, expect 51922707299452. 3ms 384.0 KiB
#6 Wrong Answer Read 2507207826199930..., expect 2927709180747665.... 3ms 384.0 KiB
#7 Wrong Answer Read 3465081049179950..., expect 3970733714429939.... 3ms 384.0 KiB
#8 Wrong Answer Read 3914152207400629..., expect 4513427246035203.... 5ms 384.0 KiB
#9 Wrong Answer Read 1443007960090243..., expect 1671732093886273.... 10ms 384.0 KiB
#10 Wrong Answer Read 116126, expect 118214. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1378 矩阵取数游戏
语言
C++
递交时间
2022-02-22 15:37:42
评测时间
2022-02-22 15:37:42
评测机
分数
20
总耗时
39ms
峰值内存
512.0 KiB