Borderou de evaluare (job #1429546)

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

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:39: warning: array subscript has type ‘char’ [-Wchar-subscripts] for(int i=1;i<=n;i++) poz[v[i]]=i; ^ 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:34: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(elim[poz[v1[i]]]) s[v1[i]]++; ^ user.cpp:32:45: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(elim[poz[v1[i]]]) s[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: 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
10ms268kbIncorect0
24ms384kbIncorect0
320ms660kbIncorect0
432ms848kbIncorect0
540ms976kbIncorect0
644ms1052kbIncorect0
7184ms3396kbIncorect0
8208ms3784kbIncorect0
9228ms4164kbIncorect0
100ms264kbIncorect0
Punctaj total0

Ceva nu functioneaza?