Borderou de evaluare (job #3337496)

Utilizator sankeeeeAndrei Lascu sankeeee Data 28 ianuarie 2026 09:40:06
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:46: error: 'vector' has not been declared 8 | static inline void buildLPS(const string &p, vector<int> &lps) { | ^~~~~~ main.cpp:8:52: error: expected ',' or '...' before '<' token 8 | static inline void buildLPS(const string &p, vector<int> &lps) { | ^ main.cpp: In function 'void buildLPS(const std::string&, int)': main.cpp:10:5: error: 'lps' was not declared in this scope 10 | lps.assign(m, 0); | ^~~ main.cpp: In function 'int main()': main.cpp:33:5: error: 'vector' was not declared in this scope 33 | vector<int> lps; | ^~~~~~ main.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 2 | #include <fstream> +++ |+#include <vector> 3 | using namespace std; main.cpp:33:12: error: expected primary-expression before 'int' 33 | vector<int> lps; | ^~~ main.cpp:34:19: error: 'lps' was not declared in this scope 34 | buildLPS(pat, lps); | ^~~ main.cpp:37:12: error: expected primary-expression before 'int' 37 | vector<int> pos; | ^~~ main.cpp:38:5: error: 'pos' was not declared in this scope 38 | pos.reserve(1000); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?