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:
- settings
- compiler
- compiler settings
- compiler flags
- mark option
have g++ follow c++11 standard
- try compile
Comments
Post a Comment