Borderou de evaluare (job #1817828)

Utilizator 1475369147896537415369Andrei Udriste 1475369147896537415369 Data 28 noiembrie 2016 15:28:10
Problema Bool Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:6:1: warning: data definition has no type or storage class [enabled by default] replace(char firstString[], char secondString[], char thirdString[]); ^ user.c:6:1: warning: type defaults to ‘int’ in declaration of ‘replace’ [enabled by default] user.c: In function ‘main’: user.c:30:1: warning: implicit declaration of function ‘strupr’ [-Wimplicit-function-declaration] strupr(letters); ^ user.c:45:22: warning: operation on ‘j’ may be undefined [-Wsequence-point] boolVar[letters[j++] - 'A'] = 1 - boolVar[letters[j] - 'A']; ^ user.c:14:16: warning: unused variable ‘k’ [-Wunused-variable] int i=-1, j=0, k=0, nChanges; ^ user.c: At top level: user.c:82:1: warning: return type defaults to ‘int’ [enabled by default] replace(char firstString[], char secondString[], char thirdString[]){ ^ user.c: In function ‘main’: user.c:27:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(file1, "%d", &nChanges); ^ user.c:28:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(file1, "%s", letters); ^ user.c: In function ‘replace’: user.c:138:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ /tmp/ccHtyNpI.o: In function `main': user.c:(.text.startup+0xa8): undefined reference to `strupr' user.c:(.text.startup+0xb4): undefined reference to `strupr' collect2: error: ld returned 1 exit status

Ceva nu functioneaza?