Borderou de evaluare (job #3369529)
| Utilizator | Data | 21 octombrie 2026 00:16:38 | |
|---|---|---|---|
| Problema | Cele mai apropiate puncte din plan | Status | done |
| Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.c:17:1: error: unknown type name 'bool'
17 | bool cmp_less(struct pair *a, struct pair *b){
| ^~~~
main.c:5:1: note: 'bool' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
4 | #include <math.h>
+++ |+#include <stdbool.h>
5 |
main.c: In function 'main':
main.c:91:24: warning: format '%ld' expects argument of type 'long int *', but argument 3 has type 'll *' {aka 'long long int *'} [-Wformat=]
91 | fscanf(fin, "%ld" "%ld", &a, &b);
| ~~^ ~~
| | |
| | ll * {aka long long int *}
| long int *
| %lld
main.c:91:21: warning: format '%ld' expects argument of type 'long int *', but argument 4 has type 'll *' {aka 'long long int *'} [-Wformat=]
91 | fscanf(fin, "%ld" "%ld", &a, &b);
| ^~~~~ ~~
| |
| ll * {aka long long int *}
main.c:91:30: note: format string is defined here
91 | fscanf(fin, "%ld" "%ld", &a, &b);
| ~~^
| |
| long int *
| %lld
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
