Borderou de evaluare (job #2520556)
Utilizator | Data | 9 ianuarie 2020 15:30:35 | |
---|---|---|---|
Problema | Rascoala | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:101: error: 'int index' redeclared as different kind of symbol
int t, n, m, k, aux, z, minim_val = (1 << 30), maxim_dist = -(1 << 30), contor, p[nmax * mmax + 5], index;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/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 solve()':
main.cpp:77:37: error: overloaded function with no contextual type information
if (p[i]) ++contor, index = i;
^
main.cpp: In function 'int main()':
main.cpp:102:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<='
for (int i = 1; i <= index; ++i)
~~^~~~~~~~
main.cpp:109:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<='
for (int i = 1; i <= index; ++i)
~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !