Borderou de evaluare (job #1671783)

Utilizator vlady1997Vlad Bucur vlady1997 Data 2 aprilie 2016 10:42:40
Problema Diez Status done
Runda Urmasii lui Moisil 2016, Clasele 11-12 Compilator cpp | Vezi sursa
Scor 16

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:20:19: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] a[n+1]=NULL; n++; a[poz]=c; ^ user.cpp:9:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("diez.in","r",stdin); ^ user.cpp:10:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("diez.out","w",stdout); ^ user.cpp:11:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%c",&n,&m,&z); ^ user.cpp:12:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ user.cpp:15:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&tip); ^ user.cpp:18:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c%c",&poz,&z,&c); ^ user.cpp:24:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&p,&r,&lg); ^ /tmp/ccWWDmQT.o: In function `main': user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOK4
20ms280kbOK4
34ms288kbOK4
476ms328kbOK4
5Depăşit392kbTime limit exceeded.0
6Depăşit400kbTime limit exceeded.0
7Depăşit400kbTime limit exceeded.0
8Depăşit412kbTime limit exceeded.0
9Depăşit384kbTime limit exceeded.0
10Depăşit388kbTime limit exceeded.0
11Depăşit384kbTime limit exceeded.0
12Depăşit392kbTime limit exceeded.0
13Depăşit388kbTime limit exceeded.0
14Depăşit388kbTime limit exceeded.0
15Depăşit392kbTime limit exceeded.0
16Depăşit392kbTime limit exceeded.0
17Depăşit544kbTime limit exceeded.0
18Depăşit552kbTime limit exceeded.0
19Depăşit548kbTime limit exceeded.0
20Depăşit572kbTime limit exceeded.0
21Depăşit552kbTime limit exceeded.0
22Depăşit548kbTime limit exceeded.0
23Depăşit400kbTime limit exceeded.0
24Depăşit440kbTime limit exceeded.0
25Depăşit548kbTime limit exceeded.0
Punctaj total16

Ceva nu functioneaza?