Borderou de evaluare (job #1973134)

Utilizator mari2001Maria Ionescu mari2001 Data 24 aprilie 2017 16:47:00
Problema Zone 2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int fill(int, int)’: user.cpp:17:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int veci(int, int)’: user.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int dropv(int, int)’: user.cpp:62:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int drop(int)’: user.cpp:77:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int si(int, int)’: user.cpp:109:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:126:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone2.in","r",stdin); ^ user.cpp:127:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zone2.out","w",stdout); ^ user.cpp:129:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d\n",&n,&m,&k); ^ user.cpp:131:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(c[i]+1),scanf("\n"); ^ user.cpp:131:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] 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:131:25: /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/ccGQrC7s.o: In function `main': user.cpp:(.text.startup+0x8d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit840kbTime limit exceeded.0
20ms320kbIncorect0
38ms384kbIncorect0
4Depăşit412kbTime limit exceeded.0
5Depăşit452kbTime limit exceeded.0
6Depăşit448kbTime limit exceeded.0
7Depăşit452kbTime limit exceeded.0
8Depăşit636kbTime limit exceeded.0
9Depăşit828kbTime limit exceeded.0
10Depăşit836kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?