Pagini recente » Borderou de evaluare (job #2989346) | Borderou de evaluare (job #174178) | Borderou de evaluare (job #835207) | Borderou de evaluare (job #2125957) | Borderou de evaluare (job #2216664)
Borderou de evaluare (job #2216664)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:21: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:21: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:37:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(i=2;i<=n;i++)
^~~
user.cpp:54:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
printf("%d %d\n",ma,cnt);
^~~~~~
user.cpp:15:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("figuri2.in","r",stdin);
^
user.cpp:16:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("figuri2.out","w",stdout);
^
user.cpp:18:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:21:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/ccLPpOq1.o: In function `main':
user.cpp:(.text.startup+0x79): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 892kb | OK | 10 |
2 | 0ms | 996kb | OK | 10 |
3 | 0ms | 1056kb | OK | 10 |
4 | 0ms | 1116kb | OK | 10 |
5 | 0ms | 1132kb | OK | 10 |
6 | 0ms | 1160kb | OK | 10 |
7 | 0ms | 1184kb | OK | 10 |
8 | 0ms | 1224kb | OK | 10 |
9 | 0ms | 1228kb | OK | 10 |
10 | 0ms | 1232kb | OK | 10 |
Punctaj total | 100 |