prog.cpp:2:14: error: ‘QPair’ does not name a type
using tab = QPair<difficult, QPair<QString,int>>;
^~~~~
prog.cpp:3:6: error: ‘multiset’ in namespace ‘std’ does not name a template type
std::multiset<tab, std::function<bool(tab,tab)>>* table;
^~~~~~~~
prog.cpp:3:1: note: ‘std::multiset’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
prog.cpp:1:1:
+#include <set>
enum difficult{EASY, MEDIUM, HARD};
prog.cpp:3:1:
std::multiset<tab, std::function<bool(tab,tab)>>* table;
^~~
prog.cpp:4:1: error: ‘HighScores’ does not name a type
HighScores::HighScores(QWidget *parent) :
^~~~~~~~~~
prog.cpp:29:1: error: ‘HighScores’ does not name a type
HighScores::~HighScores()
^~~~~~~~~~
prog.cpp:34:6: error: ‘HighScores’ has not been declared
void HighScores::callAddIf(difficult diff){
^~~~~~~~~~
prog.cpp: In function ‘void callAddIf(difficult)’:
prog.cpp:35:5: error: ‘emit’ was not declared in this scope
emit gettime();
^~~~
prog.cpp:38:20: error: ‘table’ was not declared in this scope
for(auto& i : *table)
^~~~~
prog.cpp:38:20: note: suggested alternative: ‘mutable’
for(auto& i : *table)
^~~~~
mutable
prog.cpp:41:18: error: ‘table’ was not declared in this scope
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~~~
prog.cpp:41:18: note: suggested alternative: ‘mutable’
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~~~
mutable
prog.cpp:41:46: error: ‘QPair’ was not declared in this scope
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~~~
prog.cpp:41:52: error: ‘QString’ was not declared in this scope
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~~~~~
prog.cpp:41:60: error: expected primary-expression before ‘int’
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~
prog.cpp:41:37: error: ‘tab’ was not declared in this scope
auto temp = *table->lower_bound(tab(diff,QPair<QString,int>("",0)));
^~~
prog.cpp:45:39: error: ‘time’ was not declared in this scope
if(h < 10 || temp.second.second > time){
^~~~
prog.cpp:46:16: error: expected ‘;’ before ‘name’
QString name = QInputDialog::getText(this,"New Record", "Your name");
^~~~~
;
prog.cpp:47:12: error: ‘name’ was not declared in this scope
if(name.size()>0)
^~~~
prog.cpp:48:50: error: expected primary-expression before ‘int’
table->insert(tab(diff,QPair<QString,int>(name, time)));
^~~
prog.cpp:54:5: error: ‘file’ was not declared in this scope
file->open(QIODevice::WriteOnly);
^~~~
prog.cpp:54:16: error: ‘QIODevice’ has not been declared
file->open(QIODevice::WriteOnly);
^~~~~~~~~
prog.cpp:56:52: error: ‘QString’ is not a class, namespace, or enumeration
file->write(i.second.first.toUtf8()+ " " + QString::number(i.second.second).toUtf8() + " " + QString::number(i.first).toUtf8() + "\n");
^~~~~~~
prog.cpp:56:102: error: ‘QString’ is not a class, namespace, or enumeration
file->write(i.second.first.toUtf8()+ " " + QString::number(i.second.second).toUtf8() + " " + QString::number(i.first).toUtf8() + "\n");
^~~~~~~