Pagini recente » Borderou de evaluare (job #816059) | Borderou de evaluare (job #815768) | Borderou de evaluare (job #2777181) | Borderou de evaluare (job #1236479) | Borderou de evaluare (job #1429557)
Borderou de evaluare (job #1429557)
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 |
1 | 0ms | 268kb | OK | 10 |
2 | 8ms | 388kb | OK | 10 |
3 | 24ms | 668kb | Incorect | 0 |
4 | 36ms | 860kb | Incorect | 0 |
5 | 44ms | 972kb | Incorect | 0 |
6 | 48ms | 1052kb | Incorect | 0 |
7 | 204ms | 3400kb | Incorect | 0 |
8 | 224ms | 3788kb | Incorect | 0 |
9 | 248ms | 4160kb | Incorect | 0 |
10 | 0ms | 272kb | OK | 10 |
Punctaj total | 30 |