Borderou de evaluare (job #3339387)

Utilizator IonescuRaresIonescu Rares-Mihai IonescuRares Data 7 februarie 2026 18:16:38
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 'mat power(mat, int)': main.cpp:35:19: error: cannot convert 'mat' to 'int' in initialization 35 | int half=power(a,exp/2); | ~~~~~^~~~~~~~~ | | | mat main.cpp:37:30: error: no match for 'operator%' (operand types are 'mat' and 'int') 37 | return inm(half,half)%666013; | ~~~~~~~~~~~~~~^~~~~~~ | | | | mat int main.cpp:39:34: error: no match for 'operator%' (operand types are 'mat' and 'int') 39 | return inm(inm(half,half)%666013,a%666013); | ~~~~~~~~~~~~~~^~~~~~~ | | | | mat int main.cpp:39:43: error: no match for 'operator%' (operand types are 'mat' and 'int') 39 | return inm(inm(half,half)%666013,a%666013); | ~^~~~~~~ | | | | | int | mat main.cpp: At global scope: main.cpp:44:1: error: expected initializer before 'int' 44 | int main() | ^~~ Non zero exit status: 1

Ceva nu functioneaza?