Borderou de evaluare (job #629424)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Oraș (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 feb. 2022 10:06:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void floodfill(int, int, char, char, int, int)':
main.cpp:32:5: error: 'queue' was not declared in this scope
32 | queue<pair<int, int> >monopoly;
| ^~~~~
main.cpp:2:1: note: 'std::queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
1 | #include <iostream>
+++ |+#include <queue>
2 |
main.cpp:32:26: error: expected primary-expression before '>' token
32 | queue<pair<int, int> >monopoly;
| ^
main.cpp:32:27: error: 'monopoly' was not declared in this scope
32 | queue<pair<int, int> >monopoly;
| ^~~~~~~~
main.cpp:58:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
58 | int main()
| ^~
main.cpp:58:9: note: remove parentheses to default-initialize a variable
58 | int main()
| ^~
| --
main.cpp:58:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:59:1: error: a function-definition is not allowed here before '{' token
59 | {
| ^
main.cpp:96:2: error: expected '}' at end of input
96 | }
| ^
main.cpp:30:1: note: to match this '{'
30 | {
| ^