Pagini recente » Borderou de evaluare (job #307561) | Borderou de evaluare (job #210349) | Borderou de evaluare (job #1056149) | Borderou de evaluare (job #948080) | Borderou de evaluare (job #1760618)
Borderou de evaluare (job #1760618)
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 |
1 | 24ms | 16284kb | Incorect | 0 |
2 | 28ms | 16308kb | Incorect | 0 |
3 | 36ms | 16380kb | Incorect | 0 |
4 | 72ms | 16764kb | Incorect | 0 |
5 | 68ms | 16752kb | Incorect | 0 |
6 | 240ms | 18148kb | Incorect | 0 |
7 | 544ms | 19808kb | Incorect | 0 |
8 | 628ms | 20160kb | Incorect | 0 |
9 | 852ms | 23072kb | Incorect | 0 |
10 | 552ms | 27680kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |