Language
C++
Compiler
gcc HEAD 9.0.1 20190318 (experimental)
Options
Warnings
Boost 1.69.0
C++2a(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a Exit Code:
1
Author
anonymous
almost 7 years ago
C++
gcc HEAD 9.0.1 20190318 (experimental)
Author
anonymous
almost 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a prog.cc:1:13: error: expected constructor, destructor, or type conversion before '(' token
1 | glClearColor(0, 0, 0, 0);
| ^
prog.cc:2:11: error: expected constructor, destructor, or type conversion before '(' token
2 | glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
| ^
prog.cc:3:20: error: expected constructor, destructor, or type conversion before ';' token
3 | glLoadIdentity();
| ^
prog.cc:4:13: error: expected constructor, destructor, or type conversion before '(' token
4 | glColor4f(1, 1, 1, 1);
| ^