Borderou de evaluare (job #629107)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa Formula 1 3 (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 ian. 2022 14:14:37 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:5: error: 'int index' redeclared as different kind of entity
11 | int index = -1;
| ^~~~~
In file included from /usr/include/string.h:446,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/cstring:42,
from /usr/lib/gcc/i686-pc-linux-gnu/11.2.0/include/g++-v11/i686-pc-linux-gnu/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:19:9: error: no pre-increment operator for type
19 | u[++index] = {ls, sc};
| ^~~~~
main.cpp:30:25: error: no pre-increment operator for type
30 | u[++index] = {ls, sc};
| ^~~~~
main.cpp:41:26: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator%'
41 | poz = (poz + x) % index;
| ~~~~~~~~~~^~~~~~~