Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190515 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic -pthread

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:117:1: warning: multi-line comment [-Wcomment]
  117 | ///////////////////////NOT WORKING C# VERSION \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
      | ^
prog.cc:3:1: error: 'MatchStruct' does not name a type
    3 | MatchStruct* SuperFastSolver::GetSlotMatches(SlotStruct slot)
      | ^~~~~~~~~~~
prog.cc:53:22: error: variable or field 'IsAMatch' declared void
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                      ^~~~~~~~~~
prog.cc:53:22: error: 'SlotStruct' was not declared in this scope
prog.cc:53:43: error: 'PieceStruct' was not declared in this scope
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                                           ^~~~~~~~~~~
prog.cc:53:66: error: 'MatchStruct' was not declared in this scope
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                                                                  ^~~~~~~~~~~
prog.cc:53:80: error: 'h' was not declared in this scope
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                                                                                ^
prog.cc:53:83: error: 'MatchStruct' was not declared in this scope
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                                                                                   ^~~~~~~~~~~
prog.cc:53:97: error: 't' was not declared in this scope
   53 | static void IsAMatch(SlotStruct slotData, PieceStruct pieceData, MatchStruct*& h, MatchStruct*& t)
      |                                                                                                 ^
prog.cc:119:1: error: expected unqualified-id before 'private'
  119 | private unsafe MatchStruct* GetSlotMatches(SlotStruct slot)
      | ^~~~~~~
prog.cc:168:1: error: expected unqualified-id before 'public'
  168 | public unsafe void IsAMatch(SlotStruct slotData, PieceStruct pieceData, ref MatchStruct* h, ref MatchStruct* t)
      | ^~~~~~
Exit Code:
1