Pagini recente » Borderou de evaluare (job #2316725) | Borderou de evaluare (job #1605453) | Borderou de evaluare (job #313204) | Borderou de evaluare (job #1957273) | Borderou de evaluare (job #1531082)
Borderou de evaluare (job #1531082)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[s[i]]++;
^
user.cpp:18:51: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while ((sf>=1)&&((st[sf]>s[i]) && (nr[s[i]]>1) && (nr[st[sf]]>1))){
^
user.cpp:18:69: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while ((sf>=1)&&((st[sf]>s[i]) && (nr[s[i]]>1) && (nr[st[sf]]>1))){
^
user.cpp:20:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[st[sf]]--;
^
user.cpp:27:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (nr[st[i]]>1)
^
user.cpp:29:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[st[i]]--;
^
user.cpp:9:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calandrinon.in","r",stdin);
^
user.cpp:10:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("calandrinon.out","w",stdout);
^
user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:12:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s); gets(s);
^
user.cpp:12:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s); gets(s);
^
/tmp/ccCHHXqj.o: In function `main':
user.cpp:(.text.startup+0x6a): warning: the `gets' function is dangerous and should not be used.
 | Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
✓ | 1 | 0ms | 448kb | Incorect | 0 |
✓ | 2 | 0ms | 448kb | Incorect | 0 |
✓ | 3 | 0ms | 460kb | Incorect | 0 |
✓ | 4 | 0ms | 456kb | Incorect | 0 |
✓ | 5 | 0ms | 456kb | Incorect | 0 |
✓ | 6 | 0ms | 452kb | Incorect | 0 |
✓ | 7 | 0ms | 456kb | Incorect | 0 |
✓ | 8 | 0ms | 460kb | Incorect | 0 |
✓ | 9 | 0ms | 456kb | Incorect | 0 |
✓ | 10 | 0ms | 452kb | Incorect | 0 |
✓ | 11 | 0ms | 628kb | Incorect | 0 |
✓ | 12 | 0ms | 600kb | Incorect | 0 |
✓ | 13 | 0ms | 1044kb | Incorect | 0 |
✓ | 14 | 0ms | 1040kb | Incorect | 0 |
✓ | 15 | 12ms | 2128kb | Incorect | 0 |
✓ | 16 | 12ms | 2224kb | Incorect | 0 |
✓ | 17 | 12ms | 2136kb | Incorect | 0 |
✓ | 18 | 12ms | 2512kb | Incorect | 0 |
✓ | 19 | 16ms | 3864kb | Incorect | 0 |
✓ | 20 | 12ms | 2904kb | Incorect | 0 |
Punctaj total | 0 |