Borderou de evaluare (job #647814)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | La școală (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 apr. 2022 16:48:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:8:24: error: expected identifier before string constant
8 | fopen("lascoala.in"."r");
| ^~~
main.c:8:4: error: too few arguments to function 'fopen'
8 | fopen("lascoala.in"."r");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:252:14: note: declared here
252 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:9:24: error: expected identifier before string constant
9 | fopen("lascoal.out"."w");
| ^~~
main.c:9:4: error: too few arguments to function 'fopen'
9 | fopen("lascoal.out"."w");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:252:14: note: declared here
252 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:11:15: error: expected ';' before 'for'
11 | fclose(fin)
| ^
| ;
12 | for(k=1;k*k<=n;k++){
| ~~~
main.c:24:10: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
24 | fprintf("\n");
| ^~~~
| |
| char *
In file included from /usr/include/stdio.h:888,
from main.c:1:
/usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *'
103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:24:2: error: too few arguments to function 'fprintf'
24 | fprintf("\n");
| ^~~~~~~
In file included from /usr/include/stdio.h:888,
from main.c:1:
/usr/include/bits/stdio2.h:103:1: note: declared here
103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ^~~~~~~
main.c:26:9: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
26 | fprintf("%d \n",a);
| ^~~~~~~~
| |
| char *