Borderou de evaluare (job #2395148)
Utilizator | Data | 2 aprilie 2019 11:49:09 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:11: error: 'int index' redeclared as different kind of symbol
int size, index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:4:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int choose(int)':
main.cpp:92:16: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<'
while (index < size && z[index] < val)
~~~~~~^~~~~~
main.cpp:92:33: error: invalid types 'int [2000001][<unresolved overloaded function type>]' for array subscript
while (index < size && z[index] < val)
^
main.cpp:93:10: error: no post-increment operator for type
index++;
^~
main.cpp:94:13: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<'
if (index < size)
~~~~~~^~~~~~
main.cpp:95:19: error: invalid types 'int [2000001][<unresolved overloaded function type>]' for array subscript
return z[index];
^
main.cpp: In function 'std::vector<int> twoWaySearch(char*, int, char*, int)':
main.cpp:111:11: error: overloaded function with no contextual type information
index = 0;
^
main.cpp:138:15: error: overloaded function with no contextual type information
index = 0;
^
main.cpp: In function 'int main()':
main.cpp:172:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < matches.size() && i < 1000; i++)
~~^~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !