Borderou de evaluare (job #2923315)
Utilizator | Data | 12 septembrie 2022 18:51:00 | |
---|---|---|---|
Problema | Compresie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:11: error: 'int index' redeclared as different kind of entity
9 | int n, m, index;
| ^~~~~
In file included from /usr/include/string.h:432,
from /usr/include/c++/10/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/10/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 main()':
main.cpp:28:13: error: overloaded function with no contextual type information
28 | index = 0;
| ^
main.cpp:29:17: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type '<unresolved overloaded function type>'
29 | cadran(index);
| ^
main.cpp:12:18: note: in passing argument 1 of 'void cadran(int&)'
12 | void cadran(int &index){
| ~~~~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !