Borderou de evaluare (job #1664495)

Utilizator UPB_Darius_Rares_SilviuPeace my pants UPB_Darius_Rares_Silviu Data 26 martie 2016 13:21:15
Problema Arcas Status done
Runda AGM 2016 Compilator cpp | Vezi sursa
Scor 0

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
10ms316kbOK100
20ms440kbOK10
332ms988kbIncorect0
436ms1480kbIncorect0
5156ms3512kbIncorect0
6144ms6000kbIncorect0
7216ms6000kbIncorect0
8256ms11620kbIncorect0
9284ms11616kbIncorect0
10280ms11620kbIncorect0
Punctaj total0

Ceva nu functioneaza?