Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190519 (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:6: error: 'AccessoryModel' has not been declared
    1 | bool AccessoryModel::insertRow(const QString &material_id, const QString &slug, const QString &name) {
      |      ^~~~~~~~~~~~~~
prog.cc:1:38: error: 'QString' does not name a type
    1 | bool AccessoryModel::insertRow(const QString &material_id, const QString &slug, const QString &name) {
      |                                      ^~~~~~~
prog.cc:1:66: error: 'QString' does not name a type
    1 | bool AccessoryModel::insertRow(const QString &material_id, const QString &slug, const QString &name) {
      |                                                                  ^~~~~~~
prog.cc:1:87: error: 'QString' does not name a type
    1 | bool AccessoryModel::insertRow(const QString &material_id, const QString &slug, const QString &name) {
      |                                                                                       ^~~~~~~
prog.cc: In function 'bool insertRow(const int&, const int&, const int&)':
prog.cc:2:12: error: 'table' was not declared in this scope; did you mean 'mutable'?
    2 |     return table->insertRow(material_id, slug, name);
      |            ^~~~~
      |            mutable
Exit Code:
1