Pagini recente » Borderou de evaluare (job #977408) | Borderou de evaluare (job #2216635) | Borderou de evaluare (job #1873344) | Borderou de evaluare (job #1107346) | Borderou de evaluare (job #1654013)
Borderou de evaluare (job #1654013)
Raport evaluator
Compilare:
user.cpp: In function ‘int query(int)’:
user.cpp:16:12: warning: statement has no effect [-Wunused-value]
for(pos;pos>0;pos=pos-((pos&(pos-1))^pos))
^
user.cpp: In function ‘void update(int)’:
user.cpp:22:12: warning: statement has no effect [-Wunused-value]
for(pos;pos<=n;pos=pos+((pos&(pos-1))^pos))
^
user.cpp: In function ‘void add_hash(int, int)’:
user.cpp:27:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<table[hash1].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:57:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<table[i].size();j++)
^
user.cpp:35:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("subpermutari.in","r",stdin);
^
user.cpp:36:43: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("subpermutari.out","w",stdout);
^
user.cpp:39:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:41:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 1132ms | 37932kb | Incorect | 0 | 0 |
2 | 580ms | 23856kb | Incorect | 0 |
3 | 832ms | 30936kb | Incorect | 0 |
4 | 836ms | 31528kb | Incorect | 0 |
5 | 292ms | 15448kb | OK | 10 |
6 | 1284ms | 37924kb | Incorect | 0 |
7 | 1168ms | 36708kb | Incorect | 0 |
8 | 1192ms | 35296kb | Incorect | 0 |
9 | 192ms | 12044kb | OK | 10 |
10 | 872ms | 32588kb | Incorect | 0 |
Punctaj total | 0 |