QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#582622#147. Floppy3un_larryfuncCompile Error//C++173.0kb2024-09-22 17:00:482024-09-22 17:00:48

详细

floppy.code: In function ‘int main()’:
floppy.code:102:7: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  102 |  scanf("%d%d", &n, &k);
      |  ~~~~~^~~~~~~~~~~~~~~~
floppy.code:104:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  104 |  for (int i = 0; i < n; i++) scanf("%lld", &f[i]), f[i] = (f[i] % P + P) % P;
      |                              ~~~~~^~~~~~~~~~~~~~~
floppy.code:106:36: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  106 |  for (int i = 1; i <= n; i++) scanf("%lld", &g[i]), g[i] = (P - g[i]) % P;
      |                               ~~~~~^~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccx2UNET.o: in function `main':
grader_floppy.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccO8ELzT.o:floppy.code:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccx2UNET.o: in function `run1()':
grader_floppy.cpp:(.text+0x32d): undefined reference to `read_array(int, std::vector<int, std::allocator<int> > const&)'
/usr/bin/ld: /tmp/ccx2UNET.o: in function `run2()':
grader_floppy.cpp:(.text+0x70f): undefined reference to `solve_queries(int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&)'
collect2: error: ld returned 1 exit status