Pagini recente » Borderou de evaluare (job #2371639) | Borderou de evaluare (job #2408912) | Borderou de evaluare (job #2363763) | Borderou de evaluare (job #1228087) | Borderou de evaluare (job #1997412)
Borderou de evaluare (job #1997412)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(int, int)’:
user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define LSB(x) ((x)^(x-1)&(x))
^
user.cpp:18:22: note: in expansion of macro ‘LSB’
for(; x < 2*N; x += LSB(x))
^
user.cpp: In function ‘int query(int)’:
user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define LSB(x) ((x)^(x-1)&(x))
^
user.cpp:25:20: note: in expansion of macro ‘LSB’
for(; x > 0; x -= LSB(x))
^
user.cpp: In function ‘void clear(int)’:
user.cpp:11:26: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define LSB(x) ((x)^(x-1)&(x))
^
user.cpp:32:22: note: in expansion of macro ‘LSB’
for(; x < 2*N; x += LSB(x))
^
user.cpp: In function ‘void solve()’:
user.cpp:45:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < Poz[i].size(); j++)
^
user.cpp:55:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(j == Poz[i].size()-1)
^
user.cpp:65:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < Poz[i].size(); j++)
^
user.cpp:38:15: warning: unused variable ‘q’ [-Wunused-variable]
int i, j, k, q, last, prev, val, add, val2;
^
user.cpp: In function ‘void read_data()’:
user.cpp:75:9: warning: unused variable ‘j’ [-Wunused-variable]
int i, j, k, x;
^
user.cpp:75:12: warning: unused variable ‘k’ [-Wunused-variable]
int i, j, k, x;
^
user.cpp:76:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &N);
^
user.cpp:78:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &x), Poz[x].push_back(i);
^
user.cpp: In function ‘int main()’:
user.cpp:88:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mate.in", "rt", stdin);
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 16ms | 12004kb | OK | 10 |
2 | 16ms | 12028kb | OK | 10 |
3 | 20ms | 12096kb | OK | 10 |
4 | 44ms | 12788kb | OK | 10 |
5 | 72ms | 13460kb | OK | 10 |
6 | 108ms | 14340kb | OK | 10 |
7 | 148ms | 15108kb | OK | 10 |
8 | 208ms | 16436kb | OK | 10 |
9 | 324ms | 18500kb | OK | 10 |
10 | 372ms | 19564kb | OK | 10 |
Punctaj total | 100 |