Borderou de evaluare (job #1570575)

Utilizator stefan_bogdanstefan bogdan stefan_bogdan Data 16 ianuarie 2016 17:22:13
Problema Text Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘bool EsteLitera(char)’: user.cpp:11:18: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') ^ user.cpp: In function ‘int main()’: user.cpp:21:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1024]’ [-Wformat=] fscanf(f, "%s", &s); ^ user.cpp:25:33: warning: NULL used in arithmetic [-Wpointer-arith] for (int i = 0; s[i] != NULL; i++) ^ user.cpp:33:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1024]’ [-Wformat=] fscanf(f, "%s", &s); ^ user.cpp:21:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s", &s); ^ user.cpp:33:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%s", &s); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms424kbOk!10
20ms424kbOk!10
30ms424kbOk!10
40ms428kbOk!10
50ms428kbOk!10
60ms428kbOk!10
70ms432kbOk!10
80ms424kbOk!10
90ms396kbKilled by signal 11(SIGSEGV).0
104ms428kbOk!10
Punctaj total90

Ceva nu functioneaza?