Borderou de evaluare (job #2972949)
Utilizator | Data | 30 ianuarie 2023 18:09:18 | |
---|---|---|---|
Problema | Intervale | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:73: error: 'int index' redeclared as different kind of entity
5 | int n, a[NMAX], MAXL[NMAX], MINL[NMAX], MAXR[NMAX], MINR[NMAX], nL, nR, index, f[2 * NMAX];
| ^~~~~
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 'long long int solve(int, int)':
main.cpp:56:13: error: overloaded function with no contextual type information
56 | index = 0;
| ^
main.cpp:59:12: error: no pre-increment operator for type
59 | ++ index;
| ^~~~~
main.cpp:61:30: error: invalid types 'int [200005][<unresolved overloaded function type>]' for array subscript
61 | while (MAXL[i] > MAXR[index] && MINL[i] < MINR[index] && index <= nR)
| ^
main.cpp:61:55: error: invalid types 'int [200005][<unresolved overloaded function type>]' for array subscript
61 | while (MAXL[i] > MAXR[index] && MINL[i] < MINR[index] && index <= nR)
| ^
main.cpp:61:72: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<='
61 | while (MAXL[i] > MAXR[index] && MINL[i] < MINR[index] && index <= nR)
| ~~~~~~^~~~~
main.cpp:62:16: error: no pre-increment operator for type
62 | ++ index;
| ^~~~~
main.cpp:64:12: error: no pre-decrement operator for type
64 | -- index;
| ^~~~~
main.cpp:66:73: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<='
66 | if (1 <= MAXL[i] - MINL[i] - i + 1 && MAXL[i] - MINL[i] - i + 1 <= index)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.cpp:72:13: error: overloaded function with no contextual type information
72 | index = 1;
| ^
main.cpp:75:30: error: invalid types 'int [200005][<unresolved overloaded function type>]' for array subscript
75 | while (MAXL[i] > MAXR[index] && MINL[i] > MINR[index] && index <= nR) {
| ^
main.cpp:75:55: error: invalid types 'int [200005][<unresolved overloaded function type>]' for array subscript
75 | while (MAXL[i] > MAXR[index] && MINL[i] > MINR[index] && index <= nR) {
| ^
main.cpp:75:72: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<='
75 | while (MAXL[i] > MAXR[index] && MINL[i] > MINR[index] && index <= nR) {
| ~~~~~~^~~~~
main.cpp:76:27: error: invalid types 'int [200005][<unresolved overloaded function type>]' for array subscript
76 | f[index + MINR[index]] ++;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !