Borderou de evaluare (job #709297)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Gondola (clasa a 5-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 mar. 2023 13:05:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:3:13: error: too few arguments to function 'fopen'
3 | FILE *fin = fopen("gondola.in");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:258:14: note: declared here
258 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c:4:14: error: too few arguments to function 'fopen'
4 | FILE *fout = fopen("gondola.out");
| ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:258:14: note: declared here
258 | extern FILE *fopen (const char *__restrict __filename,
| ^~~~~
main.c: In function 'main':
main.c:11:13: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
11 | scanf("%d%d",&nr);
| ~^
| |
| int *
main.c:7:21: warning: unused variable 'D' [-Wunused-variable]
7 | int n,i,nr,nr1,S,d,D,max;
| ^
main.c:7:19: warning: unused variable 'd' [-Wunused-variable]
7 | int n,i,nr,nr1,S,d,D,max;
| ^
main.c:8:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
main.c:11:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
11 | scanf("%d%d",&nr);
| ^~~~~~~~~~~~~~~~~
main.c:26:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
26 | scanf("%d",&max);
| ^~~~~~~~~~~~~~~~