Borderou de evaluare (job #810432)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Zona ( clasa a 10 ) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 feb. 2025 11:49:28 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:70:5: error: 'function' was not declared in this scope
70 | function<void(int, int)> flood_fill = [&](int x, int y) {
| ^~~~~~~~
main.cpp:6:1: note: 'std::function' is defined in header '<functional>'; this is probably fixable by adding '#include <functional>'
5 | #include <utility>
+++ |+#include <functional>
6 |
main.cpp:70:27: error: expression list treated as compound expression in functional cast [-fpermissive]
70 | function<void(int, int)> flood_fill = [&](int x, int y) {
| ^
main.cpp:70:14: error: expected primary-expression before 'void'
70 | function<void(int, int)> flood_fill = [&](int x, int y) {
| ^~~~
main.cpp:79:5: error: 'flood_fill' was not declared in this scope
79 | flood_fill(x_min + 1, y_min + 1);
| ^~~~~~~~~~