Borderou de evaluare (job #1565442)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 10 ianuarie 2016 19:28:00
Problema Calandrinon Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] fr[si[i]]++; ^ user.cpp:33:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] fr[si[x]]++; ^ user.cpp:36:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] fr[si[x]]--; ^ user.cpp:39:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(fr[si[x]]==0 && ta[si[x]]==0) ^ user.cpp:39:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(fr[si[x]]==0 && ta[si[x]]==0) ^ user.cpp:10:23: warning: unused variable ‘y’ [-Wunused-variable] int n,i,j,l,m=0,x,y,p; ^ user.cpp:8:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calandrinon.in","r",stdin); ^ user.cpp:9:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("calandrinon.out","w",stdout); ^ user.cpp:11:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n",&n); ^ user.cpp:12:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(si+1); ^ /tmp/ccbOHRhl.o: In function `main': user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbOK5
20ms264kbOK5
30ms264kbOK5
40ms272kbOK5
50ms268kbOK5
60ms264kbOK5
70ms268kbOK5
80ms272kbOK5
90ms268kbOK5
100ms272kbOK5
118ms364kbOK5
1212ms364kbOK5
1316ms364kbOK5
1420ms368kbOK5
15108ms1236kbOK5
16Depăşit1228kbTime limit exceeded.0
17196ms1240kbOK5
18188ms1232kbOK5
19Depăşit1216kbTime limit exceeded.0
20Depăşit1212kbTime limit exceeded.0
Punctaj total85

Ceva nu functioneaza?