Borderou de evaluare (job #2127576)

Utilizator NaritaandreiCNAINarita Andrei NaritaandreiCNAI Data 10 februarie 2018 19:45:17
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
10ms872kbOK10
20ms752kbIncorect0
30ms860kbIncorect0
40ms752kbOK10
50ms796kbOK10
60ms932kbOK10
70ms864kbOK10
80ms860kbOK10
90ms860kbOK10
100ms876kbOK10
Punctaj total80

Ceva nu functioneaza?