Блог пользователя ascchrvalstr

Автор ascchrvalstr, история, 8 лет назад, По-английски

My submission on the problem Parse Tree(C++14) failed to compile, and the error message is:

Can't compile file:

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0/../../../../i686-w64-mingw32/lib/../lib/crt2.o:crtexe.c:(.text+0x8c): undefined reference to _MINGW_INSTALL_DEBUG_MATHERR

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0\libstdc++.a(c++locale.o):(.text$_ZSt14__convert_to_vIfEvPKcRT_RSt12_Ios_IostateRKPi+0x6a): undefined reference to __mingw_strtof

C:/Programs/mingw-w64/bin/../lib/gcc/i686-w64-mingw32/6.2.0\libstdc++.a(c++locale.o):(.text$_ZSt14__convert_to_vIdEvPKcRT_RSt12_Ios_IostateRKPi+0x6a): undefined reference to __mingw_strtod

collect2.exe: error: ld returned 1 exit status

But when I was using C++11, there was no problem. My code is here:

https://gist.github.com/ascchrvalstr/d2c60d0cf2567a929b8a4499cef00b49

  • Проголосовать: нравится
  • +1
  • Проголосовать: не нравится

»
8 лет назад, # |
Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

I resubmitted your solution in C++14 and got AC. It seems there was something wrong when judging your previous submission.

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Looks like compiler update with my printf/scanf changes gone wrong or you caught testing machine at the exact moment of compiler update.