Borderou de evaluare (job #3377156)

Utilizator biancagravaGRAVA Bianca biancagrava Data 21 noiembrie 2026 23:05:20
Problema Evaluarea unei expresii Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:19:1: error: 'vector' does not name a type 19 | vector<string> postfixata(const string &infi) { | ^~~~~~ main.cpp:64:20: error: 'vector' does not name a type 64 | int evaluare(const vector<string> &postfi) { | ^~~~~~ main.cpp:64:26: error: expected ',' or '...' before '<' token 64 | int evaluare(const vector<string> &postfi) { | ^ main.cpp: In function 'int evaluare(int)': main.cpp:67:20: error: 'postfi' was not declared in this scope 67 | for (string s: postfi) { | ^~~~~~ main.cpp: In function 'int main()': main.cpp:108:5: error: 'vector' was not declared in this scope 108 | vector<string> post=postfixata(s); | ^~~~~~ main.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 6 | #include<stack> +++ |+#include <vector> 7 | #include<string> main.cpp:108:18: error: expected primary-expression before '>' token 108 | vector<string> post=postfixata(s); | ^ main.cpp:108:20: error: 'post' was not declared in this scope 108 | vector<string> post=postfixata(s); | ^~~~ main.cpp:108:25: error: 'postfixata' was not declared in this scope 108 | vector<string> post=postfixata(s); | ^~~~~~~~~~ main.cpp: In function 'int precedence(char)': main.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] 17 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?