Borderou de evaluare (job #3228080)
Utilizator | Data | 5 mai 2024 14:51:06 | |
---|---|---|---|
Problema | Cuplaj maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:15:27: error: 'std::map<std::pair<int, int>, int> index' redeclared as different kind of entity
15 | map <pair<int, int>, int> index;
| ^~~~~
In file included from /usr/include/string.h:462,
from /usr/include/c++/12.2.1/cstring:42,
from /usr/include/c++/12.2.1/x86_64-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:103:14: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
103 | index[{a, b}] = i;
| ^
main.cpp:127:30: error: invalid types '<unresolved overloaded function type>[<brace-enclosed initializer list>]' for array subscript
127 | cout << index[{i - 1, it - 1 - cn}] << " ";
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !