Borderou de evaluare (job #2481928)
Utilizator | Data | 27 octombrie 2019 16:42:41 | |
---|---|---|---|
Problema | Jstc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:11: error: 'int index' redeclared as different kind of symbol
int size, index = 1;
^~~~~
In file included from main.cpp:2:0:
/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 'void insert()':
main.cpp:13:12: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
v[size] = index;
^~~~~
main.cpp:15:7: error: no post-increment operator for type
index++;
^~
main.cpp: In function 'int main()':
main.cpp:59:33: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
que = (A * que + B) % (index - 1) + 1;
~~~~~~^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !