Borderou de evaluare (job #1760614)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 21 septembrie 2016 00:42:53
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:27:21: error: ‘memset’ was not declared in this scope memset(v,0,sizeof v); ^ 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); ^ user.cpp:47: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:50:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&s[i]);

Ceva nu functioneaza?