Pagini recente » Borderou de evaluare (job #1763620) | Borderou de evaluare (job #1185303) | Borderou de evaluare (job #1993867) | Borderou de evaluare (job #52746) | Borderou de evaluare (job #1664495)
Borderou de evaluare (job #1664495)
Raport evaluator
Compilare:
user.cpp: In member function ‘bool event::operator<(const event&) const’:
user.cpp:17:56: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
return time > other.time || time == other.time && update > other.update;
^
user.cpp: In function ‘void update(int, int)’:
user.cpp:5:22: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ( x & (x - 1) ^ x )
^
user.cpp:33:28: note: in expansion of macro ‘zeros’
for ( ; x < NMax; x += zeros(x) )
^
user.cpp: In function ‘int query(int)’:
user.cpp:5:22: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) ( x & (x - 1) ^ x )
^
user.cpp:40:24: note: in expansion of macro ‘zeros’
for (; x > 0; x -= zeros(x) )
^
user.cpp: In function ‘int main()’:
user.cpp:47:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arcas.in", "r", stdin);
^
user.cpp:48:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("arcas.out", "w", stdout);
^
user.cpp:50:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:53:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &v[i].x, &v[i].y1, &v[i].y2 );
^
user.cpp:63:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &r);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 316kb | OK | 10 | 0 |
2 | 0ms | 440kb | OK | 10 |
3 | 32ms | 988kb | Incorect | 0 |
4 | 36ms | 1480kb | Incorect | 0 |
5 | 156ms | 3512kb | Incorect | 0 |
6 | 144ms | 6000kb | Incorect | 0 |
7 | 216ms | 6000kb | Incorect | 0 |
8 | 256ms | 11620kb | Incorect | 0 |
9 | 284ms | 11616kb | Incorect | 0 |
10 | 280ms | 11620kb | Incorect | 0 |
Punctaj total | 0 |