Borderou de evaluare (job #2292545)
Utilizator | Data | 29 noiembrie 2018 17:52:57 | |
---|---|---|---|
Problema | Pluton | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:45: error: 'int index' redeclared as different kind of symbol
int n, v [15], k, aux = 1, mx = 0, cnt = 0, index = 0;
^~~~~
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 'int main()':
main.cpp:33:44: error: overloaded function with no contextual type information
if (aux > mx)mx = aux, index = i, cnt = 1;
^
main.cpp:41:24: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator-'
for (int i = index - mx + 1; i <= index; i ++)fout << ans [i].b << " ";
~~~~~~^~~~
main.cpp:41:36: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<='
for (int i = index - mx + 1; i <= index; i ++)fout << ans [i].b << " ";
~~^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !