Borderou de evaluare (job #1760615)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 21 septembrie 2016 00:44:20
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],s[MaxN+1]; ^ user.cpp:6:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:10:31: note: in expansion of macro ‘MaxN’ int N,L,U,X,pos=0,v[MaxN+1],s[MaxN+1]; ^ user.cpp: In function ‘void Add_To_Hash(int)’: user.cpp:14:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[nr%MOD].size();i++) ^ user.cpp:15:30: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(Hash[nr%MOD][i].first=nr) ^ user.cpp: In function ‘int Search(int)’: user.cpp:21: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:27:10: warning: unused variable ‘size’ [-Wunused-variable] int d=0,size=0,aux,j=1; ^ user.cpp: In function ‘int main()’: user.cpp:55: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(int)’: user.cpp:23:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:45: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:46: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:48: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:51: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
228ms16304kbIncorect0
336ms16384kbIncorect0
468ms16764kbIncorect0
568ms16752kbIncorect0
6236ms18156kbIncorect0
7544ms19808kbIncorect0
8620ms20164kbIncorect0
9884ms23072kbIncorect0
101276ms27716kbIncorect0
Punctaj total0

Ceva nu functioneaza?