Pagini recente » Borderou de evaluare (job #1941957) | Borderou de evaluare (job #2470237) | Borderou de evaluare (job #2632798) | Borderou de evaluare (job #2242512) | Borderou de evaluare (job #1680868)
Borderou de evaluare (job #1680868)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mapal.in","r",stdin);
^
user.cpp:36:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mapal.out","w",stdout);
^
user.cpp:38:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:41:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a[i]+1);
^
user.cpp:52:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&l);
^
user.cpp:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&li[i]);
^
user.cpp:63:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
^
user.cpp:66:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&co[j]);
^
In file included from /usr/include/stdio.h:934:0,
from /usr/include/c++/4.8/cstdio:42,
from user.cpp:1:
In function ‘char* gets(char*)’,
inlined from ‘int main()’ at user.cpp:41:21:
/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/cc3GOh8s.o: In function `main':
user.cpp:(.text.startup+0x82): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 1296kb | OK | 10 |
2 | 100ms | 12156kb | Incorect | 0 |
3 | 96ms | 11700kb | Incorect | 0 |
4 | 16ms | 4872kb | Incorect | 0 |
5 | 40ms | 8776kb | OK | 10 |
6 | 104ms | 12884kb | Incorect | 0 |
7 | 12ms | 2680kb | OK | 10 |
8 | 144ms | 13832kb | Incorect | 0 |
9 | 60ms | 13952kb | Incorect | 0 |
10 | 120ms | 13168kb | Incorect | 0 |
Punctaj total | 30 |