Borderou de evaluare (job #2256999)
Utilizator | Data | 9 octombrie 2018 15:50:02 | |
---|---|---|---|
Problema | Transport | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘main’:
user.c:33:10: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
ar = malloc(sizeof(int)*aSize);
^~~~~~
user.c:33:10: warning: incompatible implicit declaration of built-in function ‘malloc’
user.c:33:10: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
user.c:38:16: error: ‘a’ undeclared (first use in this function)
sum += a[i];
^
user.c:38:16: note: each undeclared identifier is reported only once for each function it appears in
user.c:63:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free(ar);
^~~~
user.c:63:5: warning: incompatible implicit declaration of built-in function ‘free’
user.c:63:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
user.c:31:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i", &aSize, &nTrips);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.c:37:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", ar+i);
^~~~~~~~~~~~~~~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !