Borderou de evaluare (job #614626)

Utilizator avatar Ana_22 Petcu Ana-Maria Ana_22 IP ascuns
Problemă Dictionar Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 6 nov. 2021 20:19:16 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:13:5: error: 'int index' redeclared as different kind of entity 13 | int index; | ^~~~~ In file included from /usr/include/string.h:446, from main.cpp:5: /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 seteaza()': main.cpp:32:35: error: no matching function for call to 'std::vector<int>::push_back(<unresolved overloaded function type>)' 32 | hashuri[hashh].push_back( index ); | ^ In file included from /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/vector:67, from main.cpp:4: /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1187 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'const value_type&' {aka 'const int&'} 1187 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' 1203 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/lib/gcc/i686-pc-linux-gnu/10.3.0/include/g++-v10/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<unresolved overloaded function type>' to 'std::vector<int>::value_type&&' {aka 'int&&'} 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp: In function 'void getval()': main.cpp:39:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 39 | while( i < hashuri[hashh].size() && strcmp( cuv, cuvinte[hashuri[hashh][i]] ) ) | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:41:9: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'unsigned int'} [-Wsign-compare] 41 | if( i < hashuri[hashh].size() ) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:73:18: error: overloaded function with no contextual type information 73 | for( index = 0; index < n; index++ ) { | ^ main.cpp:73:27: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<' 73 | for( index = 0; index < n; index++ ) { | ~~~~~~^~~ main.cpp:73:37: error: no post-increment operator for type 73 | for( index = 0; index < n; index++ ) { | ^~ main.cpp:78:16: error: invalid types 'char [20000][11][<unresolved overloaded function type>]' for array subscript 78 | cuvinte[index][x-1] = ch; | ^ main.cpp:85:18: error: invalid types 'char [20000][11][<unresolved overloaded function type>]' for array subscript 85 | traduceri[index][y-1] = ch; | ^ main.cpp:71:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]