Borderou de evaluare (job #3123597)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 24 aprilie 2023 20:52:53
Problema Diez Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:5: error: 'vector' does not name a type 7 | vector<int> data; | ^~~~~~ main.cpp: In constructor 'AIB_i::AIB_i(int)': main.cpp:10:14: error: overloaded function with no contextual type information 10 | data.resize(n + offset + 7); | ^~~~~~ main.cpp: In member function 'int AIB_i::query(int)': main.cpp:20:55: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 20 | for(int p = 0; p > 0; p -= lsb(p)) ret += data[p]; | ^ main.cpp: In member function 'void AIB_i::update(int, int)': main.cpp:26:35: error: overloaded function with no contextual type information 26 | for(int p = poz; p < data.size(); p += lsb(p)) data[p] += v; | ^~~~ main.cpp:26:60: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 26 | for(int p = poz; p < data.size(); p += lsb(p)) data[p] += v; | ^ main.cpp: In function 'int main()': main.cpp:45:5: error: 'vector' was not declared in this scope 45 | vector<event> ev; | ^~~~~~ main.cpp:2:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'? 1 | #include <iostream> +++ |+#include <vector> 2 | main.cpp:45:17: error: expected primary-expression before '>' token 45 | vector<event> ev; | ^ main.cpp:45:19: error: 'ev' was not declared in this scope 45 | vector<event> ev; | ^~ main.cpp:47:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 47 | for(int i = 0; i < s.size(); i++) { | ~~^~~~~~~~~~ main.cpp:67:20: error: 'tmp2' was not declared in this scope; did you mean 'tmp'? 67 | cin >> tmp2.t2al >> tmp.t2bl; | ^~~~ | tmp Non zero exit status: 1

Ceva nu functioneaza?