Borderou de evaluare (job #3253694)
Utilizator | Data | 4 noiembrie 2024 12:20:16 | |
---|---|---|---|
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 constructor 'Matrix::Matrix(int, bool)':
main.cpp:11:23: error: 'vi' was not declared in this scope
11 | mat.assign(n, vi(n, 0));
| ^~
main.cpp: In member function 'Matrix Matrix::pow(int64_t)':
main.cpp:36:15: error: cannot resolve overloaded function 'exp' based on conversion to type 'bool'
36 | while(exp){
| ^~~
main.cpp:37:20: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%'
37 | if(exp % 2 == 1){
| ~~~~^~~
main.cpp: In function 'int32_t main()':
main.cpp:58:12: error: no matching function for call to 'Matrix::Matrix()'
58 | Matrix a;
| ^
main.cpp:10:5: note: candidate: 'Matrix::Matrix(int, bool)'
10 | Matrix(int size, bool flag = false) : n(size) {
| ^~~~~~
main.cpp:10:5: note: candidate expects 2 arguments, 0 provided
main.cpp:6:7: note: candidate: 'constexpr Matrix::Matrix(const Matrix&)'
6 | class Matrix{
| ^~~~~~
main.cpp:6:7: note: candidate expects 1 argument, 0 provided
main.cpp:6:7: note: candidate: 'constexpr Matrix::Matrix(Matrix&&)'
main.cpp:6:7: note: candidate expects 1 argument, 0 provided
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !