Borderou de evaluare (job #3296864)
Utilizator | Data | 17 mai 2025 23:32:15 | |
---|---|---|---|
Problema | Al k-lea termen Fibonacci | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<std::vector<int> > exponentiate_matrix(std::vector<std::vector<int> >, int)':
main.cpp:49:16: error: reference to 'identity' is ambiguous
49 | return identity; // identitiy matrix
| ^~~~~~~~
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/ostream:38,
from /usr/include/c++/12.2.1/iostream:39,
from main.cpp:3:
/usr/include/c++/12.2.1/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
47 | struct identity
| ^~~~~~~~
main.cpp:24:25: note: 'std::vector<std::vector<int> > identity'
24 | vector < vector <int> > identity = {
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !