Borderou de evaluare (job #2242688)

Utilizator sorgeTrifescu Stefan-Octavian sorge Data 19 septembrie 2018 12:12:30
Problema Numere Prime Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:32:13: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [-Wincompatible-pointer-types] fprintf("%d",nr*nr); ^~~~ In file included from /usr/include/stdio.h:936:0, from user.c:1: /usr/include/bits/stdio2.h:95:1: note: expected ‘FILE * restrict {aka struct _IO_FILE * restrict}’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ user.c:32:18: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [-Wint-conversion] fprintf("%d",nr*nr); ^~ In file included from /usr/include/stdio.h:936:0, from user.c:1: /usr/include/bits/stdio2.h:95:1: note: expected ‘const char * restrict’ but argument is of type ‘int’ fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ user.c:32:5: warning: format not a string literal and no format arguments [-Wformat-security] fprintf("%d",nr*nr); ^~~~~~~ user.c: In function ‘KnrPrim’: user.c:20:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.c: In function ‘main’: user.c:27:5: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp,"%d",&n); ^~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1036kbKilled by signal 11(SIGSEGV).0
20ms1040kbKilled by signal 11(SIGSEGV).0
30ms1040kbKilled by signal 11(SIGSEGV).0
40ms1040kbKilled by signal 11(SIGSEGV).0
50ms1036kbKilled by signal 11(SIGSEGV).0
60ms1040kbKilled by signal 11(SIGSEGV).0
70ms1040kbKilled by signal 11(SIGSEGV).0
80ms1036kbKilled by signal 11(SIGSEGV).0
90ms1040kbKilled by signal 11(SIGSEGV).0
100ms1040kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?