Ad
  • Custom User Avatar

    Cannot run the test in c++ got the following error:

    1 warning generated.
    /tmp/main-c73091.o: In function BasicTests::Test1()': main.cpp:(.text._ZN10BasicTests5Test1Ev[_ZN10BasicTests5Test1Ev]+0xf): undefined reference to Automaton::Automaton()'
    /tmp/main-c73091.o: In function BasicTests::Test2()': main.cpp:(.text._ZN10BasicTests5Test2Ev[_ZN10BasicTests5Test2Ev]+0xf): undefined reference to Automaton::Automaton()'
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I have the same code. I think it's quite clean.