Borderou de evaluare (job #2594192)
Utilizator | Data | 5 aprilie 2020 16:03:38 | |
---|---|---|---|
Problema | Fotbal2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:14:26: error: 'std::map<std::pair<int, int>, int> index' redeclared as different kind of symbol
map<pair<int, int>, int> 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 'int main()':
main.cpp:29:21: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
index[{x, y}] = i;
^
main.cpp:30:21: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
index[{y, x}] = i;
^
main.cpp: In function 'void find_cycles(int)':
main.cpp:79:44: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
sol[index[{stk.top(), cont}]] = stk.top();
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !