Borderou de evaluare (job #2481932)
Utilizator | Data | 27 octombrie 2019 16:45:12 | |
---|---|---|---|
Problema | Jstc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:12: error: 'int index' redeclared as different kind of symbol
int sizeM, 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:13: error: cannot resolve overloaded function 'index' based on conversion to type 'int'
v[sizeM] = index;
^~~~~
main.cpp:15:7: error: no post-increment operator for type
index++;
^~
main.cpp: In function 'int cautare(int)':
main.cpp:25:19: error: 'size' was not declared in this scope
int st = 0, dp = size;
^~~~
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 !