Borderou de evaluare (job #2127564)

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

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
10ms936kbIncorect0
20ms752kbIncorect0
30ms808kbOK10
40ms876kbOK10
50ms936kbOK10
60ms876kbOK10
70ms880kbOK10
80ms756kbOK10
90ms860kbOK10
100ms756kbOK10
Punctaj total80

Ceva nu functioneaza?