Borderou de evaluare (job #1791340)

Utilizator mateibanuBanu Matei Costin mateibanu Data 29 octombrie 2016 11:42:05
Problema Charlie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:35:28: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(f,"%c",&v[2]);v[1]=a; ^ user.cpp:14:16: warning: unused variable ‘n’ [-Wunused-variable] int p,ok=1,n,i; ^ user.cpp:16:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n%c",&p,&a); ^ user.cpp:22:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.cpp:35:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&v[2]);v[1]=a; ^ user.cpp:38:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK5
20ms272kbOK5
30ms268kbOK5
44ms272kbOK5
58ms272kbOK5
60ms228kbKilled by signal 11(SIGSEGV).0
70ms232kbKilled by signal 11(SIGSEGV).0
80ms232kbKilled by signal 11(SIGSEGV).0
90ms228kbKilled by signal 11(SIGSEGV).0
100ms228kbKilled by signal 11(SIGSEGV).0
110ms228kbKilled by signal 11(SIGSEGV).0
120ms228kbKilled by signal 11(SIGSEGV).0
130ms228kbKilled by signal 11(SIGSEGV).0
140ms236kbKilled by signal 11(SIGSEGV).0
150ms232kbKilled by signal 11(SIGSEGV).0
160ms236kbKilled by signal 11(SIGSEGV).0
170ms228kbKilled by signal 11(SIGSEGV).0
180ms232kbKilled by signal 11(SIGSEGV).0
190ms232kbKilled by signal 11(SIGSEGV).0
200ms272kbOK5
Punctaj total30

Ceva nu functioneaza?