Borderou de evaluare (job #3223804)
Utilizator | Catalina Ionela Florescu catalinaionela77 | Data | 13 aprilie 2024 17:54:59 |
---|---|---|---|
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 'putere':
main.c:15:23: error: 'mod' undeclared (first use in this function)
15 | n = (n * n) % mod;
| ^~~
main.c:15:23: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'main':
main.c:33:20: warning: format '%llu' expects argument of type 'long long unsigned int *', but argument 3 has type 'uint64_t *' {aka 'long unsigned int *'} [-Wformat=]
33 | fscanf(f1, "%llu %llu", &N, &P);
| ~~~^ ~~
| | |
| | uint64_t * {aka long unsigned int *}
| long long unsigned int *
| %lu
main.c:33:25: warning: format '%llu' expects argument of type 'long long unsigned int *', but argument 4 has type 'uint64_t *' {aka 'long unsigned int *'} [-Wformat=]
33 | fscanf(f1, "%llu %llu", &N, &P);
| ~~~^ ~~
| | |
| | uint64_t * {aka long unsigned int *}
| long long unsigned int *
| %lu
main.c:36:21: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' {aka 'long unsigned int'} [-Wformat=]
36 | fprintf(f2, "%llu\n", rez);
| ~~~^ ~~~
| | |
| | uint64_t {aka long unsigned int}
| long long unsigned int
| %lu
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !