Pagini recente » Borderou de evaluare (job #3252881) | Borderou de evaluare (job #2841472) | Borderou de evaluare (job #123892) | Borderou de evaluare (job #2029717) | Borderou de evaluare (job #1413735)
Borderou de evaluare (job #1413735)
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 | 11992kb | OK | 10 |
2 | 16ms | 12020kb | OK | 10 |
3 | 20ms | 12092kb | OK | 10 |
4 | 44ms | 12780kb | OK | 10 |
5 | 72ms | 13460kb | OK | 10 |
6 | 112ms | 14332kb | OK | 10 |
7 | 152ms | 15100kb | OK | 10 |
8 | 212ms | 16416kb | OK | 10 |
9 | 324ms | 18488kb | OK | 10 |
10 | 372ms | 19552kb | OK | 10 |
Punctaj total | 100 |