Borderou de evaluare (job #825138)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Rapper (clasa a 6-a) | Compilator | c-32 |
Rundă | Concurs 11 | IQ Academy | clasa a 6-a | Status | evaluat |
Dată | 20 mai 2025 10:04:35 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:28:18: error: assignment to 'int' from 'size_t (*)(const char *)' {aka 'unsigned int (*)(const char *)'} makes integer from pointer without a cast [-Wint-conversion]
28 | for(i=strlen;i<strlen(s);i++)
| ^
main.c:15:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
15 | fscanf(fin,"%d",&c);
| ^~~~~~~~~~~~~~~~~~~
main.c:19:9: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result]
19 | fgets(s,105,fin);
| ^~~~~~~~~~~~~~~~