Borderou de evaluare (job #1285196)

Utilizator aprilie2003Popa Ana Maria aprilie2003 Data 7 decembrie 2014 10:26:53
Problema Minesweeper 2 Status done
Runda Algoritmiada 2015 - Runda 1, Juniori Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:5:12: warning: unused variable ‘fout’ [-Wunused-variable] FILE*fin,*fout; ^ user.c: At top level: user.c:20:2: warning: data definition has no type or storage class [enabled by default] fclose(fin); ^ user.c:20:2: warning: type defaults to ‘int’ in declaration of ‘fclose’ [enabled by default] user.c:20:2: warning: parameter names (without types) in function declaration [enabled by default] user.c:21:2: warning: data definition has no type or storage class [enabled by default] fout=fopen("minesweeper2.in","w"); ^ user.c:21:2: warning: type defaults to ‘int’ in declaration of ‘fout’ [enabled by default] user.c:21:7: warning: initialization makes integer from pointer without a cast [enabled by default] fout=fopen("minesweeper2.in","w"); ^ user.c:21:2: error: initializer element is not constant fout=fopen("minesweeper2.in","w"); ^ user.c:22:15: error: expected ‘)’ before string constant fprintf(fout,"%d",i); ^ user.c:23:2: warning: data definition has no type or storage class [enabled by default] fclose(fout); ^ user.c:23:2: warning: type defaults to ‘int’ in declaration of ‘fclose’ [enabled by default] user.c:23:2: warning: parameter names (without types) in function declaration [enabled by default] user.c:24:2: error: expected identifier or ‘(’ before ‘return’ return 0; ^ user.c:25:2: error: expected identifier or ‘(’ before ‘}’ token } ^ user.c: In function ‘main’: user.c:8:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^

Ceva nu functioneaza?