QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#582622 | #147. Floppy | 3un_larryfunc | Compile Error | / | / | C++17 | 3.0kb | 2024-09-22 17:00:48 | 2024-09-22 17:00:48 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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