Borderou de evaluare (job #1760618)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 21 septembrie 2016 00:52:25
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp:6:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:10:21: note: in expansion of macro ‘MaxN’ int N,L,U,X,pos=0,v[MaxN+1]; ^ user.cpp:6:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:11:12: note: in expansion of macro ‘MaxN’ unsigned s[MaxN+1]; ^ user.cpp: In function ‘void Add_To_Hash(unsigned int)’: user.cpp:15:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[nr%MOD].size();i++) ^ user.cpp:16:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(Hash[nr%MOD][i].first=nr) ^ user.cpp: In function ‘int Search(unsigned int)’: user.cpp:22:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[nr%MOD].size();i++) ^ user.cpp: In function ‘long long int seq(int)’: user.cpp:28:10: warning: unused variable ‘size’ [-Wunused-variable] int d=0,size=0,aux,j=1; ^ user.cpp: In function ‘int main()’: user.cpp:56:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<Hash[i].size();j++) ^ user.cpp: In function ‘int Search(unsigned int)’: user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:46:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.in","r",stdin); ^ user.cpp:47:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("secv5.out","w",stdout); ^ user.cpp:49:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&N,&L,&U); ^ user.cpp:52:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&s[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms16284kbIncorect0
228ms16308kbIncorect0
336ms16380kbIncorect0
472ms16764kbIncorect0
568ms16752kbIncorect0
6240ms18148kbIncorect0
7544ms19808kbIncorect0
8628ms20160kbIncorect0
9852ms23072kbIncorect0
10552ms27680kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?