Author
anonymous
over 6 years ago
Language
C++
Compiler
gcc HEAD 9.0.0 20181108 (experimental)
Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic
-pthread
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:1:17: error: non-member function 'bool HasScale()' cannot have cv-qualifier
1 | bool HasScale() const {
| ^~~~~
prog.cc: In function 'bool HasScale()':
prog.cc:2:5: error: 'Float' was not declared in this scope; did you mean 'float'?
2 | Float la2 = (*this)(Vector3f(1, 0, 0)).LengthSquared();
| ^~~~~
| float
prog.cc:3:10: error: expected ';' before 'lb2'
3 | Float lb2 = (*this)(Vector3f(0, 1, 0)).LengthSquared();
| ^~~~
| ;
prog.cc:4:10: error: expected ';' before 'lc2'
4 | Float lc2 = (*this)(Vector3f(0, 0, 1)).LengthSquared();
| ^~~~
| ;
prog.cc:6:21: error: 'la2' was not declared in this scope
6 | return (NOT_ONE(la2) || NOT_ONE(lb2) || NOT_ONE(lc2));
| ^~~
prog.cc:5:22: note: in definition of macro 'NOT_ONE'
5 | #define NOT_ONE(x) ((x) < .999f || (x) > 1.001f)
| ^
prog.cc:6:37: error: 'lb2' was not declared in this scope
6 | return (NOT_ONE(la2) || NOT_ONE(lb2) || NOT_ONE(lc2));
| ^~~
prog.cc:5:22: note: in definition of macro 'NOT_ONE'
5 | #define NOT_ONE(x) ((x) < .999f || (x) > 1.001f)
| ^
prog.cc:6:53: error: 'lc2' was not declared in this scope
6 | return (NOT_ONE(la2) || NOT_ONE(lb2) || NOT_ONE(lc2));
| ^~~
prog.cc:5:22: note: in definition of macro 'NOT_ONE'
5 | #define NOT_ONE(x) ((x) < .999f || (x) > 1.001f)
| ^
Exit Code:
1