/ Vijos /

记录详情

Compile Error

foo.cc: In function 'std::vector<long long int> mul(std::vector<long long int>&, long long int)':
foo.cc:21:9: error: could not convert 'c' from 'std::vector<int>' to 'std::vector<long long int>'
  return c;
         ^
foo.cc: In function 'int main()':
foo.cc:115:22: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=]
    printf("%d",res[i]);
                      ^
foo.cc:119:23: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=]
    printf("%d",ans1[i]);
                       ^
foo.cc:29:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d",&n,&m,&k);
  ~~~~~^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1286 座位安排
语言
C++
递交时间
2021-08-16 20:53:01
评测时间
2021-08-16 20:53:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes