Borderou de evaluare (job #1429557)

Utilizator george_stelianChichirim George george_stelian Data 6 mai 2015 17:33:04
Problema Lru Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:28: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(poz[v1[i]] && (elim[poz[v1[i]]] || v[poz[v1[i]]]!=v1[i])) ^ user.cpp:30:48: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(poz[v1[i]] && (elim[poz[v1[i]]] || v[poz[v1[i]]]!=v1[i])) ^ user.cpp:30:65: warning: array subscript has type ‘char’ [-Wchar-subscripts] while(poz[v1[i]] && (elim[poz[v1[i]]] || v[poz[v1[i]]]!=v1[i])) ^ user.cpp:32:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[v1[i]]+=elim[poz[v1[i]]]; ^ user.cpp:32:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[v1[i]]+=elim[poz[v1[i]]]; ^ user.cpp:33:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] poz[v1[i]]--; ^ user.cpp:35:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(poz[v1[i]]) ^ user.cpp:37:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol+=n-poz[v1[i]]-s[v1[i]]; ^ user.cpp:37:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol+=n-poz[v1[i]]-s[v1[i]]; ^ user.cpp:38:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] elim[poz[v1[i]]]=1; ^ user.cpp:39:60: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(int j=0;j<3;j++) s[j]+=poz[j]<poz[v1[i]]; ^ user.cpp: In function ‘int norm(char)’: user.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:17:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lru.in", "r", stdin); ^ user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lru.out", "w", stdout); ^ user.cpp:20:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d",&t);t;t--) ^ user.cpp:23:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n%s",&n,sir);
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
28ms388kbOK10
324ms668kbIncorect0
436ms860kbIncorect0
544ms972kbIncorect0
648ms1052kbIncorect0
7204ms3400kbIncorect0
8224ms3788kbIncorect0
9248ms4160kbIncorect0
100ms272kbOK10
Punctaj total30

Ceva nu functioneaza?