Borderou de evaluare (job #3132283)
Utilizator | Data | 22 mai 2023 01:46:12 | |
---|---|---|---|
Problema | ADN | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:23: error: 'std::vector<int> index' redeclared as different kind of entity
15 | vector <int> pi, sol, 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 'int kmp(int, int)':
main.cpp:27:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i = 1; i < a.size() && ok; i ++)
| ~~^~~~~~~~~~
main.cpp: In function 'void rebuildPath(int)':
main.cpp:61:29: error: overloaded function with no contextual type information
61 | int mask = (1 << (index.size())) - 1;
| ^~~~
main.cpp:77:22: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
77 | display(index[sol[i]], poz[index[sol[i]]][index[sol[i - 1]]]);
| ^
main.cpp:77:41: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
77 | display(index[sol[i]], poz[index[sol[i]]][index[sol[i - 1]]]);
| ^
main.cpp:77:56: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
77 | display(index[sol[i]], poz[index[sol[i]]][index[sol[i - 1]]]);
| ^
main.cpp:79:18: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
79 | display(index[sol[0]], secvente[index[sol[0]]].size());
| ^
main.cpp:79:42: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
79 | display(index[sol[0]], secvente[index[sol[0]]].size());
| ^
main.cpp: In function 'int main()':
main.cpp:5:12: error: overloaded function with no contextual type information
5 | #define pb push_back
| ^~~~~~~~~
main.cpp:115:19: note: in expansion of macro 'pb'
115 | index.pb(i);
| ^~
main.cpp:5:12: error: overloaded function with no contextual type information
5 | #define pb push_back
| ^~~~~~~~~
main.cpp:122:15: note: in expansion of macro 'pb'
122 | index.pb(n - 1);
| ^~
main.cpp:126:32: error: overloaded function with no contextual type information
126 | int noMasks = (1 << (index.size())) - 1;
| ^~~~
main.cpp:129:34: error: overloaded function with no contextual type information
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !