听灌多,求问这是什么问题
  • 板块灌水区
  • 楼主Misserina
  • 当前回复1
  • 已保存回复1
  • 发布时间2024/9/13 20:07
  • 上次更新2024/9/14 08:33:40
查看原帖
听灌多,求问这是什么问题
1105993
Misserina楼主2024/9/13 20:07

P11049 说不能用 C++14(GCC9) 提交,我改用 C++14 就成了这样

No valid executable file was produced by the compiler
/tmp/compiler_dv0r1gpb/src: In function ‘std::vector<long long int> calculate_costs(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)’:
/tmp/compiler_dv0r1gpb/src:10:23: 警告: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<e.size();i++) {
      |                      ~^~~~~~~~~
/tmp/compiler_dv0r1gpb/src: In function ‘int main()’:
/tmp/compiler_dv0r1gpb/src:45:23: 警告:comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   45 |         for (int i=0;i<res.size();i++) {
      |                      ~^~~~~~~~~~~
/nix/store/p58l5qmzifl20qmjs3xfpl01f0mqlza2-binutils-2.40/bin/ld: ./ccw4tJHd.o: in function `main':
src:(.text.startup+0x0): multiple definition of `main'; /tmp/compiler_dv0r1gpb/lib.o:src:(.text.startup+0x0): first defined here
collect2: 错误:ld 返回 1
2024/9/13 20:07
加载中...