Pagini recente » Borderou de evaluare (job #886901) | Borderou de evaluare (job #2517408) | Borderou de evaluare (job #484609) | Borderou de evaluare (job #2526358) | Borderou de evaluare (job #1714518)
Borderou de evaluare (job #1714518)
Raport evaluator
Compilare:
user.cpp: In function ‘void Update(int, int)’:
user.cpp:19:10: warning: statement has no effect [-Wunused-value]
for(x;x<=3*n;x=x+((x&(x-1))^x))
^
user.cpp: In function ‘void Reset(int)’:
user.cpp:23:10: warning: statement has no effect [-Wunused-value]
for(x;x<=3*n;x=x+((x&(x-1))^x))
^
user.cpp: In function ‘int Query(int)’:
user.cpp:28:10: warning: statement has no effect [-Wunused-value]
for(x;x>0;x=x-((x&(x-1))^x))
^
user.cpp: In function ‘int main()’:
user.cpp:45:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<positions[i].size();j++){
^
user.cpp:49:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0;j<positions[i].size();j++)
^
user.cpp:33:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mate.in","r",stdin);
^
user.cpp:34:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mate.out","w",stdout);
^
user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:40:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 6136kb | OK | 10 |
2 | 8ms | 6164kb | OK | 10 |
3 | 12ms | 6260kb | OK | 10 |
4 | 32ms | 7116kb | OK | 10 |
5 | 56ms | 7916kb | OK | 10 |
6 | 88ms | 8916kb | OK | 10 |
7 | 128ms | 10156kb | OK | 10 |
8 | 172ms | 11704kb | OK | 10 |
9 | 280ms | 14144kb | OK | 10 |
10 | 320ms | 16008kb | OK | 10 |
Punctaj total | 100 |