Pagini recente » Borderou de evaluare (job #1160885) | Borderou de evaluare (job #19468) | Borderou de evaluare (job #2245910) | Borderou de evaluare (job #725713) | Borderou de evaluare (job #1654024)
Borderou de evaluare (job #1654024)
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 | 988ms | 37484kb | OK | 10 | 100 |
2 | 620ms | 23388kb | OK | 10 |
3 | 804ms | 30620kb | OK | 10 |
4 | 808ms | 31456kb | OK | 10 |
5 | 404ms | 15052kb | OK | 10 |
6 | 984ms | 37672kb | OK | 10 |
7 | 948ms | 36840kb | OK | 10 |
8 | 912ms | 35696kb | OK | 10 |
9 | 300ms | 12052kb | OK | 10 |
10 | 844ms | 32764kb | OK | 10 |
Punctaj total | 100 |