Borderou de evaluare (job #3236072)
Utilizator | Data | 25 iunie 2024 22:53:42 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'exp_log':
main.c:13:16: warning: implicit declaration of function 'log_exp' [-Wimplicit-function-declaration]
13 | return log_exp((y * x) % M, (x * x) % M, (n - 1) / 2);
| ^~~~~~~
main.c: In function 'main':
main.c:31:26: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'int' [-Wformat=]
31 | fprintf(fileout, "%lld\n", log_exp(1, n, p));
| ~~~^ ~~~~~~~~~~~~~~~~
| | |
| | int
| long long int
| %d
/usr/bin/ld: ./ccBOeNoH.o: in function `exp_log':
main.c:(.text+0x78): undefined reference to `log_exp'
/usr/bin/ld: ./ccBOeNoH.o: in function `main':
main.c:(.text.startup+0x89): undefined reference to `log_exp'
collect2: error: ld returned 1 exit status
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !