Johnson C++ algorithm compiling error -


i'm using code of jonhson algorithm https://gist.github.com/ashleyholman/6793360, when compiling it's throwing me errors, of these i've solved, there's others i'm not understanding can be... i'll post here, compiling errors.

33 error: expected expression 43 error: expected expression 85 error: expected expression 103 error: expected expression 105 error: expected expression 159 error: expected ';' @ end of declaration

the code using c++11 features such range-based loop , list initialization etc.
compile code -std=c++11 or -std=c++14 flag.

as you're using codeblocks, here's how:

  1. settings
  2. compiler
  3. compiler settings
  4. compiler flags
  5. mark option have g++ follow c++11 standard
  6. try compile

Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -