Borderou de evaluare (job #2759574)
Utilizator | Data | 19 iunie 2021 00:56:34 | |
---|---|---|---|
Problema | PetSoft | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:28: error: 'r' undeclared (first use in this function)
input=fopen("petsoft.in", r);
^
main.c:9:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:30: error: 'w' undeclared (first use in this function)
output=fopen("petsoft.out", w);
^
main.c:23:15: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
valoare+=abs(i-j);
^~~
main.c:11:2: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(input, "%d", &N);
^~~~~~~~~~~~~~~~~~~~~~~
main.c:14:3: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result]
fscanf(input, "%d" , &v[i]);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !