Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190522 (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:1:1: error: 'Class' does not name a type; did you mean 'class'?
    1 | Class A {
      | ^~~~~
      | class
prog.cc:8:1: error: 'A' does not name a type
    8 | A table;
      | ^
prog.cc:10:1: error: expected unqualified-id before 'for'
   10 | for(int c=0; c<13; c++) {
      | ^~~
prog.cc:10:14: error: 'c' does not name a type
   10 | for(int c=0; c<13; c++) {
      |              ^
prog.cc:10:20: error: 'c' does not name a type
   10 | for(int c=0; c<13; c++) {
      |                    ^
Exit Code:
1