Borderou de evaluare (job #1760613)

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

Raport evaluator

Eroare de compilare: user.cpp:5:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:9:21: note: in expansion of macro ‘MaxN’ int N,L,U,X,pos=0,v[MaxN+1],s[MaxN+1]; ^ user.cpp:5:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:9: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:13:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<Hash[nr%MOD].size();i++) ^ user.cpp:14: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:20: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:5:15: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] #define MaxN 1<<20 ^ user.cpp:27:13: note: in expansion of macro ‘MaxN’ memset(v,0,MaxN+1); ^ user.cpp:27:19: error: ‘memset’ was not declared in this scope memset(v,0,MaxN+1); ^ user.cpp:26:10: warning: unused variable ‘size’ [-Wunused-variable] int d=0,size=0,aux,j=1; ^ user.cpp: In function ‘int main()’: user.cpp:54: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:22:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:44: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:45: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);

Ceva nu functioneaza?