Borderou de evaluare (job #3281816)

Utilizator Tudor_EnacheEnache Tudor Tudor_Enache Data 3 martie 2025 18:42:29
Problema Oite Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:6: error: 'unordered_map' in namespace 'std' does not name a template type 8 | std::unordered_map<int, int> f; | ^~~~~~~~~~~~~ main.cpp:4:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'? 3 | #include <vector> +++ |+#include <unordered_map> 4 | main.cpp: In function 'int main()': main.cpp:21:20: error: 'f' was not declared in this scope 21 | ans += f[x]; | ^ main.cpp:24:13: error: 'f' was not declared in this scope 24 | f[v[i] + v[j]]++; | ^ Non zero exit status: 1

Ceva nu functioneaza?