Borderou de evaluare (job #2680989)
Utilizator | David Curca divadd | Data | 4 decembrie 2020 19:23:02 |
---|---|---|---|
Problema | String Repair | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:5: error: 'int index' redeclared as different kind of symbol
int index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from main.cpp:3:
/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 main()':
main.cpp:15:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < strlen(a); i++){
~~^~~~~~~~~~~
main.cpp:16:27: error: invalid types 'char [100002][<unresolved overloaded function type>]' for array subscript
if(a[i] == b[index]){
^
main.cpp:18:18: error: no post-increment operator for type
index++;
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !