Pagini recente » Borderou de evaluare (job #1101583) | Borderou de evaluare (job #138270) | Borderou de evaluare (job #1964811) | Borderou de evaluare (job #2781565) | Borderou de evaluare (job #1295632)
Borderou de evaluare (job #1295632)
Raport evaluator
Compilare:
user.cpp: In function ‘int cmp(char*, char*)’:
user.cpp:14:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (ord[a[i]]<ord[b[i]]) return -1;
^
user.cpp:14:43: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (ord[a[i]]<ord[b[i]]) return -1;
^
user.cpp: In function ‘int main()’:
user.cpp:78:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[6]’ [-Wformat=]
printf("%s\n",a);
^
user.cpp:44: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);
^
user.cpp:45: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);
^
user.cpp:47:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&op);
^
user.cpp:50:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:51:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:52:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:56:47: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1; i<=n; ++i) gets(a[i]);
^
user.cpp:68:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:69:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:70:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:74:41: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1; i<=n; ++i) gets(a[i]);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from /usr/include/c++/4.8/ext/string_conversions.h:43,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 288kb | OK | 5 |
2 | 0ms | 296kb | OK | 5 |
3 | 28ms | 572kb | OK | 5 |
4 | 60ms | 876kb | OK | 5 |
5 | 120ms | 1456kb | OK | 5 |
6 | 252ms | 2624kb | OK | 5 |
7 | 0ms | 284kb | Incorect | 0 |
8 | 0ms | 292kb | Incorect | 0 |
9 | 0ms | 292kb | Incorect | 0 |
10 | 0ms | 316kb | Incorect | 0 |
11 | 4ms | 344kb | Incorect | 0 |
12 | 8ms | 400kb | Incorect | 0 |
13 | 20ms | 516kb | Incorect | 0 |
14 | 44ms | 748kb | Incorect | 0 |
15 | 56ms | 872kb | Incorect | 0 |
16 | 84ms | 1160kb | Incorect | 0 |
17 | 116ms | 1452kb | Incorect | 0 |
18 | 148ms | 1740kb | Incorect | 0 |
19 | 192ms | 2156kb | Incorect | 0 |
20 | 252ms | 2624kb | Incorect | 0 |
Punctaj total | 30 |