Pagini recente » Borderou de evaluare (job #2821011) | Borderou de evaluare (job #2347292) | Borderou de evaluare (job #295254) | Borderou de evaluare (job #1448292) | Borderou de evaluare (job #1653999)
Borderou de evaluare (job #1653999)
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:67:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<table[i].size();j++)
^
user.cpp:43: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:44: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:47:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:49: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 | 23232kb | Incorect | 0 | 0 |
2 | 648ms | 12232kb | Incorect | 0 |
3 | 892ms | 22176kb | Incorect | 0 |
4 | 904ms | 22904kb | Incorect | 0 |
5 | 304ms | 4224kb | Incorect | 0 |
6 | 1136ms | 23232kb | Incorect | 0 |
7 | 1092ms | 23348kb | Incorect | 0 |
8 | 1032ms | 23232kb | Incorect | 0 |
9 | 132ms | 1496kb | OK | 10 |
10 | 936ms | 23220kb | Incorect | 0 |
Punctaj total | 0 |