Borderou de evaluare (job #3189568)

Utilizator bogosanuAndrei Bogos bogosanu Data 6 ianuarie 2024 10:40:03
Problema Ghizi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:26: error: 'std::vector<std::pair<int, int> > index' redeclared as different kind of entity 11 | vector <pair <int, int>> index; | ^~~~~ In file included from /usr/include/string.h:462, from /usr/include/c++/12.2.1/cstring:42, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:48, from main.cpp:1: /usr/include/strings.h:61:1: note: previous declaration 'const char* index(const char*, int)' 61 | index (const char *__s, int __c) __THROW | ^~~~~ main.cpp: In function 'void ek()': main.cpp:57:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 57 | int x = index[i].first; | ^ main.cpp:58:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 58 | int y = index[i].second; | ^ main.cpp:66:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 66 | for (int i = 0; i < rez.size(); ++i) { | ~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:73:11: error: overloaded function with no contextual type information 73 | index.resize(n + 2); | ^~~~~~ main.cpp:80:14: error: invalid types '<unresolved overloaded function type>[int]' for array subscript 80 | index[i] = make_pair(x, y); | ^ Non zero exit status: 1

Ceva nu functioneaza?