Borderou de evaluare (job #2841745)

Utilizator the_horoHorodniceanu Andrei the_horo Data 30 ianuarie 2022 13:06:53
Problema Fadema Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:6: error: 'array' in namespace 'std' does not name a template type 12 | std::array<std::array<bool, MAXM>, MAXN> mat; | ^~~~~ main.cpp:4:1: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'? 3 | #include <stack> +++ |+#include <array> 4 | main.cpp:18:25: error: 'array' in namespace 'std' does not name a template type 18 | best_on_row (const std::array<size_t, MAXM> &heights) { | ^~~~~ main.cpp:18:20: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'? 18 | best_on_row (const std::array<size_t, MAXM> &heights) { | ^~~ main.cpp:18:30: error: expected ',' or '...' before '<' token 18 | best_on_row (const std::array<size_t, MAXM> &heights) { | ^ main.cpp: In function 'size_t best_on_row(int)': main.cpp:23:30: error: 'heights' was not declared in this scope 23 | while (!s.empty() && heights[s.top()] >= heights[j]) { | ^~~~~~~ main.cpp:38:29: error: 'heights' was not declared in this scope 38 | ret = std::max(ret, heights[top] * width); | ^~~~~~~ main.cpp: In function 'size_t biggest_rectangle()': main.cpp:47:10: error: 'array' is not a member of 'std' 47 | std::array<size_t, MAXM> heights; | ^~~~~ main.cpp:47:10: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'? main.cpp:47:22: error: expected primary-expression before ',' token 47 | std::array<size_t, MAXM> heights; | ^ main.cpp:47:30: error: 'heights' was not declared in this scope 47 | std::array<size_t, MAXM> heights; | ^~~~~~~ main.cpp:52:17: error: 'mat' was not declared in this scope 52 | if (mat[i][j] == target) | ^~~ main.cpp: In function 'int main()': main.cpp:77:13: error: 'mat' was not declared in this scope 77 | mat[i][j] = ((i + j) % 2) ^ value; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?