Borderou de evaluare (job #1429546)
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 |
1 | 0ms | 268kb | Incorect | 0 |
2 | 4ms | 384kb | Incorect | 0 |
3 | 20ms | 660kb | Incorect | 0 |
4 | 32ms | 848kb | Incorect | 0 |
5 | 40ms | 976kb | Incorect | 0 |
6 | 44ms | 1052kb | Incorect | 0 |
7 | 184ms | 3396kb | Incorect | 0 |
8 | 208ms | 3784kb | Incorect | 0 |
9 | 228ms | 4164kb | Incorect | 0 |
10 | 0ms | 264kb | Incorect | 0 |
Punctaj total | 0 |