Borderou de evaluare (job #3145689)

Utilizator NutaAlexandruASN49K NutaAlexandru Data 16 august 2023 17:09:52
Problema Arbore Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void solve()': main.cpp:20:16: error: 'cerr' was not declared in this scope 20 | #define bug(a) cerr << "(" << #a << ": " << a << ")\n"; | ^~~~ main.cpp:140:13: note: in expansion of macro 'bug' 140 | bug(poz[0]); | ^~~ main.cpp:13:1: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 12 | #include <queue> +++ |+#include <iostream> 13 | #include <array> main.cpp:146:13: error: 'cerr' was not declared in this scope 146 | cerr<<query(s)<<'\n'; | ^~~~ main.cpp:146:13: note: 'std::cerr' is defined in header '<iostream>'; did you forget to '#include <iostream>'? main.cpp: At global scope: main.cpp:150:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 150 | main() | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?