Borderou de evaluare (job #2127742)

Utilizator silkMarin Dragos silk Data 10 februarie 2018 23:08:17
Problema Password1 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(i = 0; B[i]; ++i) ++cntB[ B[i] ]; ^ user.cpp:31:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++cnt[ A[dr] ]; ^ user.cpp:32:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(cnt[ A[dr] ] == cntB[ A[dr] ]) ++need; ^ user.cpp:32:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(cnt[ A[dr] ] == cntB[ A[dr] ]) ++need; ^ user.cpp:37:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(i = 1; i < dr; ++i) ++cntA[ A[i] ]; ^ user.cpp:44:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] --cntA[ A[st++] ]; ^ user.cpp:47:47: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(A[st] != A[dr]) --cntA[ A[st++] ]; ^ user.cpp:48:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] --cntA[ A[st++] ]; ^ user.cpp:50:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] --cntB[ A[dr] ]; ^ user.cpp:52:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cnt[ A[dr] ] > cntB[ A[dr] ] && dr <= N) ++cntA[ A[dr] ], --cnt[ A[dr++] ]; ^ user.cpp:52:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cnt[ A[dr] ] > cntB[ A[dr] ] && dr <= N) ++cntA[ A[dr] ], --cnt[ A[dr++] ]; ^ user.cpp:52:70: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cnt[ A[dr] ] > cntB[ A[dr] ] && dr <= N) ++cntA[ A[dr] ], --cnt[ A[dr++] ]; ^ user.cpp:52:88: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(cnt[ A[dr] ] > cntB[ A[dr] ] && dr <= N) ++cntA[ A[dr] ], --cnt[ A[dr++] ]; ^ user.cpp:22:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%s %s",A,B); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms5352kbOK624
20ms5352kbOK6
30ms5352kbOK6
40ms5356kbOK6
50ms5360kbOK634
60ms5352kbOK7
74ms5364kbOK7
84ms5396kbOK7
924ms5452kbOK7
10316ms19844kbOK742
11176ms15592kbOK7
12492ms30088kbOK7
13168ms11660kbOK7
14676ms39348kbOK7
15676ms39344kbOK7
Punctaj total100

Ceva nu functioneaza?