Pagini recente » Borderou de evaluare (job #2421356) | Borderou de evaluare (job #2624229) | Borderou de evaluare (job #1704159) | Borderou de evaluare (job #2365198) | Borderou de evaluare (job #2162376)
Borderou de evaluare (job #2162376)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a[i]+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:19:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a[i]+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:19:20: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(a[i]+1);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gravity.in","r",stdin);
^
user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("gravity.out","w",stdout);
^
user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:18:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
user.cpp:19:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a[i]+1);
^
/tmp/ccPTHvsZ.o: In function `main':
user.cpp:(.text.startup+0x9a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 16ms | 12416kb | OK! | 10 | 32 |
2 | 20ms | 12408kb | OK! | 10 |
3 | 16ms | 12456kb | OK! | 12 |
4 | 236ms | 21848kb | OK! | 7 | 14 |
5 | 236ms | 21716kb | OK! | 7 |
6 | 320ms | 21728kb | OK! | 13 | 51 |
7 | 8ms | 9732kb | OK! | 13 |
8 | 320ms | 21708kb | OK! | 13 |
9 | 188ms | 21784kb | OK! | 10 |
10 | 340ms | 21716kb | OK! | 2 |
11 | 248ms | 21696kb | OK! | 3 | 3 |
Punctaj total | 100 |