Pagini recente » Borderou de evaluare (job #1691771) | Borderou de evaluare (job #129059) | Borderou de evaluare (job #2044930) | Borderou de evaluare (job #1047324) | Borderou de evaluare (job #2220658)
Borderou de evaluare (job #2220658)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:30:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:30:15: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(s);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:20:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifra.in","r",stdin);
^
user.cpp:21:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifra.out","w",stdout);
^
user.cpp:24:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&t);
^
user.cpp:30:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:25:9: warning: ‘i’ is used uninitialized in this function [-Wuninitialized]
v[i]=1;
~~~~^~
/tmp/ccSFYj4P.o: In function `main':
user.cpp:(.text.startup+0xb1): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 752kb | Raspuns gresit! | 0 |
2 | 0ms | 756kb | Raspuns gresit! | 0 |
3 | 0ms | 936kb | Raspuns gresit! | 0 |
4 | 0ms | 792kb | Raspuns gresit! | 0 |
5 | 0ms | 796kb | Raspuns gresit! | 0 |
6 | 0ms | 876kb | Raspuns gresit! | 0 |
7 | 4ms | 800kb | Raspuns gresit! | 0 |
8 | 4ms | 860kb | Raspuns gresit! | 0 |
9 | 8ms | 864kb | Raspuns gresit! | 0 |
10 | 20ms | 860kb | Raspuns gresit! | 0 |
Punctaj total | 0 |