Borderou de evaluare (job #1429558)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:31: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:31: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:31: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:33:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[v1[i]]+=elim[poz[v1[i]]]; ^ user.cpp:33:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[v1[i]]+=elim[poz[v1[i]]]; ^ user.cpp:34:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] poz[v1[i]]--; ^ user.cpp:36:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(poz[v1[i]]) ^ user.cpp:38:33: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol+=n-poz[v1[i]]-s[v1[i]]; ^ user.cpp:38:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] sol+=n-poz[v1[i]]-s[v1[i]]; ^ user.cpp:39:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] elim[poz[v1[i]]]=1; ^ user.cpp:40: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:24: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
10ms276kbOK10
28ms392kbOK10
328ms664kbOK10
440ms864kbOK10
548ms980kbOK10
656ms1056kbOK10
7220ms3404kbOK10
8248ms3788kbOK10
9272ms4172kbOK10
100ms280kbOK10
Punctaj total100

Ceva nu functioneaza?