Borderou de evaluare (job #2186110)
Utilizator | Data | 25 martie 2018 12:46:54 | |
---|---|---|---|
Problema | Brasov | Status | done |
Runda | Agm 2018 Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void AIBAdd(int, int)’:
user.cpp:3:20: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x&(x-1)^x)
^
user.cpp:24:31: note: in expansion of macro ‘zeros’
for (int i=pos;i<=VMAX;i+=zeros(i))
^~~~~
user.cpp: In function ‘int query(int)’:
user.cpp:3:20: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define zeros(x) (x&(x-1)^x)
^
user.cpp:31:28: note: in expansion of macro ‘zeros’
for (int i=pos;i>=1;i-=zeros(i))
^~~~~
user.cpp: In function ‘void Add(int, int)’:
user.cpp:70:36: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
auto it = D.upper_bound({b,1e9});
^
user.cpp:90:35: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
it = D.upper_bound({b,1e9});
^
user.cpp: In function ‘void Del(int, int)’:
user.cpp:102:36: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
auto it = D.upper_bound({b,1e9});
^
user.cpp:105:25: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
interval st = {1e9,0}, dr = {1e9,0};
^
user.cpp:105:39: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
interval st = {1e9,0}, dr = {1e9,0};
^
user.cpp:109:26: error: no match for ‘operator=’ (operand types are ‘interval’ and ‘<brace-enclosed initializer list>’)
st = {it->a,a};
^
user.cpp:10:8: note: candidate: interval& interval::operator=(const interval&)
struct interval{
^~~~~~~~
user.cpp:10:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const interval&’
user.cpp:10:8: note: candidate: interval& interval::operator=(interval&&)
user.cpp:10:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘interval&&’
user.cpp:111:26: error: no match for ‘operator=’ (operand types are ‘interval’ and ‘<brace-enclosed initializer list>’)
dr = {b,it->b};
^
user.cpp:10:8: note: candidate: interval& interval::operator=(const interval&)
struct interval{
^~~~~~~~
user.cpp:10:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const interval&’
user.cpp:10:8: note: candidate: interval& interval::operator=(interval&&)
user.cpp:10:8: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘interval&&’
user.cpp:118:35: error: narrowing conversion of ‘1.0e+9’ from ‘double’ to ‘int’ inside { } [-Wnarrowing]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !