hokej.cpp: In function 'int main()':
hokej.cpp:39:24: error: 'player' was not declared in this scope
sort(players.begin(), player.end(), [](Player a, Player b) {
^~~~~~
hokej.cpp:39:24: note: suggested alternative: 'players'
sort(players.begin(), player.end(), [](Player a, Player b) {
^~~~~~
players
hokej.cpp:71:64: error: request for member 'no' in 'timelines[best_timeline].Timeline::players.std::vector<int>::back()', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}'
substitution.no1 = timelines[best_timeline].players.back().no;
^~
hokej.cpp:85:48: error: expected ',' before '+' token
printf("%d%c", " \n", init_players[t].no, [t + 1 == 6]);
^
hokej.cpp:85:48: error: expected identifier before '+' token
hokej.cpp: In lambda function:
hokej.cpp:85:57: error: expected '{' before ')' token
printf("%d%c", " \n", init_players[t].no, [t + 1 == 6]);
^
hokej.cpp: In function 'int main()':
hokej.cpp:85:57: warning: format '%d' expects argument of type 'int', but argument 2 has type 'const char*' [-Wformat=]
hokej.cpp:85:57: warning: too many arguments for format [-Wformat-extra-args]