Pagini recente » Borderou de evaluare (job #1379800) | Borderou de evaluare (job #1641901) | Borderou de evaluare (job #2465646) | Borderou de evaluare (job #1326955) | Borderou de evaluare (job #1900921)
Borderou de evaluare (job #1900921)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:48:36: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset(str,NULL,sizeof(str));
^
user.cpp:49:38: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ [-Wconversion-null]
memset(strr,NULL,sizeof(strr));
^
user.cpp:92:31: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
if ((ci >> j) & 1 == 1)
^
user.cpp:42:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("logic.in","r",stdin);
^
user.cpp:43:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("logic.out", "w", stdout);
^
user.cpp:46:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d\n", &n); n; --n)
^
user.cpp:50:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
user.cpp:51:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(strr);
^
/tmp/cckqndRw.o: In function `main':
user.cpp:(.text.startup+0xbd): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 452kb | OK | 10 |
2 | 0ms | 452kb | OK | 10 |
3 | 0ms | 452kb | OK | 10 |
4 | 0ms | 448kb | OK | 10 |
5 | 4ms | 452kb | OK | 10 |
6 | 0ms | 448kb | OK | 10 |
7 | 0ms | 448kb | OK | 10 |
8 | 0ms | 452kb | OK | 10 |
9 | 0ms | 452kb | OK | 10 |
10 | 0ms | 448kb | OK | 10 |
Punctaj total | 100 |