Borderou de evaluare (job #2127561)

Utilizator NaritaandreiCNAINarita Andrei NaritaandreiCNAI Data 10 februarie 2018 19:18:22
Problema Vecini2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[5002]’ [-Wformat=] fscanf(f,"%d\n%s\n%s",&n,&a,&b); ^ user.cpp:12:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 5 has type ‘char (*)[5002]’ [-Wformat=] user.cpp:14:15: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[b[i]]++,v2[b[i]]++; ^ user.cpp:14:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[b[i]]++,v2[b[i]]++; ^ user.cpp:17:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(v[a[i]]) ^ user.cpp:19:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[a[i]]--; ^ user.cpp:20:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] v2[a[i]]--; ^ user.cpp:12:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d\n%s\n%s",&n,&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms872kbIncorect0
20ms756kbIncorect0
30ms864kbIncorect0
40ms756kbOK10
50ms820kbOK10
60ms800kbOK10
70ms752kbOK10
80ms752kbOK10
90ms792kbOK10
100ms756kbOK10
Punctaj total70

Ceva nu functioneaza?