Borderou de evaluare (job #3144004)

Utilizator Andreir667Radulescu Andrei-Catalin Andreir667 Data 3 august 2023 18:00:00
Problema Secretul Cifrului Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void getFacti(int)': main.cpp:74:18: error: cannot bind non-const lvalue reference of type 'int_fast32_t&' {aka 'long int&'} to a value of type 'int' 74 | cmmdc(inv[i],temp,fact[i],mod); | ^~~~ main.cpp:14:42: note: initializing argument 2 of 'void cmmdc(int_fast32_t&, int_fast32_t&, int_fast32_t, int_fast32_t)' 14 | void cmmdc(int_fast32_t &x,int_fast32_t &y,int_fast32_t a,int_fast32_t b) | ~~~~~~~~~~~~~~^ main.cpp: In function 'int_fast32_t getNumberNonprime(int_fast32_t)': main.cpp:92:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 92 | if(k%i==0 and i<=n) | ^ Non zero exit status: 1

Ceva nu functioneaza?