Pagini recente » Borderou de evaluare (job #2609515) | Borderou de evaluare (job #542639) | Borderou de evaluare (job #2432338) | Borderou de evaluare (job #3240128) | Borderou de evaluare (job #1347540)
Borderou de evaluare (job #1347540)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:64:15: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
s[i+1]=NULL;
^
user.cpp:66:27: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
if(lung[0]>x) s[0]=NULL;
^
user.cpp:13:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.in","r",stdin);
^
user.cpp:14:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.out","w",stdout);
^
user.cpp:20:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
user.cpp:23:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:24:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:27:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
/tmp/ccy9J3cv.o: In function `main':
user.cpp:(.text.startup+0x80): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 248kb | OK | 10 | 100 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 252kb | OK | 10 |
4 | 0ms | 264kb | OK | 10 |
5 | 0ms | 476kb | OK | 10 |
6 | 4ms | 2008kb | OK | 10 |
7 | 24ms | 9028kb | OK | 10 |
8 | 24ms | 9036kb | OK | 10 |
9 | 24ms | 9036kb | OK | 10 |
10 | 24ms | 9028kb | OK | 10 |
Punctaj total | 100 |