library-checker-problems icon indicating copy to clipboard operation
library-checker-problems copied to clipboard

Inverse Matrix correct solution fails to compile

Open plasmatic1 opened this issue 3 years ago • 2 comments

Trying to compile the correct solution for the problem inverse_matrix on my local machine is giving me the following error: https://pastebin.com/vxNLFJhy

For reference, I'm using https://github.com/online-judge-tools/verification-helper/ to verify the correctness of my codebook templates. Maybe there is a way to make it so that compilation warnings are not treated as errors, but I'm not sure how to do so.

I can also provide the code for tests/math/matrix_inverse.test.cpp if necessary, but it looks like an error with the correct solutions.

plasmatic1 avatar Jul 05 '21 05:07 plasmatic1

Some more thoughts on the issue:

  • It seems like github actions has no issues processing the problem and gives a correct verdict.
  • Locally, I'm running on WSL2 with Ubuntu version 18.04 LTS. Maybe this is an issue with WSL?
  • Here is the relevant piece of code I was trying to test https://github.com/plasmatic1/templates/blob/master/tests/math/matrix_inverse.test.cpp

plasmatic1 avatar Jul 05 '21 16:07 plasmatic1

https://stackoverflow.com/questions/49845474/why-does-gcc-diagnose-a-unused-variable-for-structured-bindings-while-clang-does This seems to be bug in gcc and has been fixed in the latest version.

NyaanNyaan avatar Jul 06 '21 08:07 NyaanNyaan