Pagini recente » Cod sursa (job #453028) | Borderou de evaluare (job #1456295) | Borderou de evaluare (job #1873338) | Borderou de evaluare (job #2841578) | Borderou de evaluare (job #2647900)
Borderou de evaluare (job #2647900)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:24:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<strlen(z);i++)
~^~~~~~~~~~
main.cpp:25:15: warning: array subscript has type 'char' [-Wchar-subscripts]
v[z[i]]=i;
^
main.cpp:32:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<strlen(s);j++){
~^~~~~~~~~~
main.cpp:33:26: warning: array subscript has type 'char' [-Wchar-subscripts]
x=x*13+v[s[j]];
^
main.cpp:18:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("zimeria.in","r",stdin);
^
main.cpp:19:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("zimeria.out","w",stdout);
^
main.cpp:21:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&cer,&n);
^
main.cpp:22:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",z);
^
main.cpp:29:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 5 |
| 2 | 3ms | 131kb | OK | 5 |
| 3 | 25ms | 393kb | OK | 5 |
| 4 | 49ms | 524kb | OK | 5 |
| 5 | 100ms | 917kb | OK | 5 |
| 6 | 167ms | 1703kb | OK | 5 |
| 7 | 2ms | 131kb | OK | 5 |
| 8 | 3ms | 131kb | OK | 5 |
| 9 | 4ms | 131kb | OK | 5 |
| 10 | 6ms | 131kb | OK | 5 |
| 11 | 10ms | 262kb | OK | 5 |
| 12 | 17ms | 393kb | OK | 5 |
| 13 | 33ms | 524kb | OK | 5 |
| 14 | 61ms | 917kb | OK | 5 |
| 15 | 79ms | 1179kb | OK | 5 |
| 16 | 119ms | 1703kb | OK | 5 |
| 17 | 147ms | 2097kb | OK | 5 |
| 18 | 173ms | 2621kb | OK | 5 |
| 19 | 232ms | 3407kb | OK | 5 |
| 20 | 271ms | 4063kb | OK | 5 |
| Punctaj total | 100 |