0_0_39670118_10252.cpp: In function 'int countSolutions(int)':
0_0_39670118_10252.cpp:11:5: error: 'function' was not declared in this scope
11 | function<void(int, int, int, int)> solve = [&](int row, int columns, int diagonals1, int diagonals2) {
| ^~~~~~~~
0_0_39670118_10252.cpp:2:1: note: 'std::function' is defined in header '<functional>'; did you forget to '#include <functional>'?
1 | #include <iostream>
+++ |+#include <functional>
2 | using namespace std;
0_0_39670118_10252.cpp:11:37: error: expression list treated as compound expression in functional cast [-fpermissive]
11 | function<void(int, int, int, int)> solve = [&](int row, int columns, int diagonals1, int diagonals2) {
| ^
0_0_39670118_10252.cpp:11:14: error: expected primary-expression before 'void'
11 | function<void(int, int, int, int)> solve = [&](int row, int columns, int diagonals1, int diagonals2) {
| ^~~~
0_0_39670118_10252.cpp:25:5: error: 'solve' was not declared in this scope
25 | solve(0, 0, 0, 0);
| ^~~~~
|