Borderou de evaluare (job #814308)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Inpostfix (clasa a 10-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 mar. 2025 10:10:19 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:29:7: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
29 | n=strlen(c);
| ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
2 | #include <stdlib.h>
+++ |+#include <string.h>
3 |
main.c:29:7: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
29 | n=strlen(c);
| ^~~~~~
main.c:29:7: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:28:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf(fin, "%s", c);
| ^~~~~~~~~~~~~~~~~~~~