Borderou de evaluare (job #3358898)
| Utilizator | Data | 21 iunie 2026 20:46:10 | |
|---|---|---|---|
| Problema | Namlei | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'Matrix query(int, int, int, int, int)':
main.cpp:110:16: error: reference to 'identity' is ambiguous
110 | return identity;
| ^~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/iterator_concepts.h:38,
from /usr/include/c++/12.2.1/bits/stl_iterator_base_types.h:71,
from /usr/include/c++/12.2.1/bits/stl_construct.h:61,
from /usr/include/c++/12.2.1/bits/char_traits.h:46,
from /usr/include/c++/12.2.1/ios:40,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
47 | struct identity
| ^~~~~~~~
main.cpp:15:22: note: 'Matrix identity'
15 | Matrix tree[120005], identity, a[30005];
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:123:9: error: reference to 'identity' is ambiguous
123 | identity.mat[i][i] = 1;
| ^~~~~~~~
/usr/include/c++/12.2.1/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
47 | struct identity
| ^~~~~~~~
main.cpp:15:22: note: 'Matrix identity'
15 | Matrix tree[120005], identity, a[30005];
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
