Pagini recente » Borderou de evaluare (job #1006814) | Borderou de evaluare (job #1836156) | Borderou de evaluare (job #1200386) | Borderou de evaluare (job #2242775) | Borderou de evaluare (job #1588576)
Borderou de evaluare (job #1588576)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.in","r",stdin);
^
user.cpp:31:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.out","w",stdout);
^
user.cpp:33:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tip);
^
user.cpp:34:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:35:42: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= n; ++i) gets(s[i]+1);
^
user.cpp:81:21: warning: ‘C’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%c\n", C);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:35:42:
/usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default]
return __gets_warn (__str);
^
/tmp/cc1KmGIG.o: In function `main':
user.cpp:(.text.startup+0xa6): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 664kb | Corect! Varianta 1 | 5 |
2 | 0ms | 724kb | Corect! Varianta 1 | 5 |
3 | 0ms | 924kb | Gresit! | 0 |
4 | 0ms | 1288kb | Gresit! | 0 |
5 | 16ms | 8760kb | Corect! Varianta 1 | 5 |
6 | 0ms | 476kb | Gresit! | 0 |
7 | 0ms | 592kb | Corect! Varianta 2 | 5 |
8 | 0ms | 584kb | Gresit! | 0 |
9 | 4ms | 664kb | Gresit! | 0 |
10 | 4ms | 660kb | Gresit! | 0 |
11 | 12ms | 804kb | Gresit! | 0 |
12 | 28ms | 1032kb | Gresit! | 0 |
13 | 52ms | 1584kb | Gresit! | 0 |
14 | 32ms | 1124kb | Gresit! | 0 |
15 | 64ms | 1384kb | Gresit! | 0 |
16 | 68ms | 1420kb | Gresit! | 0 |
17 | 68ms | 1440kb | Gresit! | 0 |
18 | 64ms | 1404kb | Gresit! | 0 |
19 | 108ms | 1868kb | Gresit! | 0 |
20 | 0ms | 476kb | Corect! Varianta 1 | 5 |
Punctaj total | 25 |