Borderou de evaluare (job #3249434)
Utilizator | Data | 16 octombrie 2024 12:33:53 | |
---|---|---|---|
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 'matrix log_pow(matrix, long long int)':
main.cpp:63:25: error: reference to 'identity' is ambiguous
63 | if(pow == 0) 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_algobase.h:65,
from /usr/include/c++/12.2.1/bits/specfun.h:45,
from /usr/include/c++/12.2.1/cmath:1935,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from main.cpp:10:
/usr/include/c++/12.2.1/bits/ranges_cmp.h:47:10: note: candidates are: 'struct std::identity'
47 | struct identity
| ^~~~~~~~
main.cpp:51:1: note: 'matrix identity'
51 | identity({1,0,0,1});
| ^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !