Pagini recente » Borderou de evaluare (job #71865) | Borderou de evaluare (job #1120505) | Borderou de evaluare (job #2841888) | Borderou de evaluare (job #570486) | Borderou de evaluare (job #2220695)
Borderou de evaluare (job #2220695)
Raport evaluator
Compilare:
user.cpp: In function ‘int uc(int)’:
user.cpp:10:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (e==0)
^~
user.cpp:12:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
n=n%10;
^
user.cpp: In function ‘int main()’:
user.cpp:30:7: 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:13: 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:33: 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:35: 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:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccsOf5u2.o: In function `main':
user.cpp:(.text.startup+0x14a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 756kb | OK! | 10 |
2 | 0ms | 756kb | OK! | 10 |
3 | 0ms | 752kb | OK! | 10 |
4 | 0ms | 880kb | OK! | 10 |
5 | 0ms | 860kb | OK! | 10 |
6 | 0ms | 756kb | OK! | 10 |
7 | 0ms | 752kb | OK! | 10 |
8 | 4ms | 876kb | OK! | 10 |
9 | 8ms | 800kb | OK! | 10 |
10 | 20ms | 756kb | OK! | 10 |
Punctaj total | 100 |