Pagini recente » Borderou de evaluare (job #2191351) | Borderou de evaluare (job #2442113) | Borderou de evaluare (job #951941) | Borderou de evaluare (job #69219) | Borderou de evaluare (job #1760615)
Borderou de evaluare (job #1760615)
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 |
1 | 24ms | 16284kb | Incorect | 0 |
2 | 28ms | 16304kb | Incorect | 0 |
3 | 36ms | 16384kb | Incorect | 0 |
4 | 68ms | 16764kb | Incorect | 0 |
5 | 68ms | 16752kb | Incorect | 0 |
6 | 236ms | 18156kb | Incorect | 0 |
7 | 544ms | 19808kb | Incorect | 0 |
8 | 620ms | 20164kb | Incorect | 0 |
9 | 884ms | 23072kb | Incorect | 0 |
10 | 1276ms | 27716kb | Incorect | 0 |
Punctaj total | 0 |