Borderou de evaluare (job #2761275)

Utilizator MadalinaKopaczMadalina Kopacz MadalinaKopacz Data 1 iulie 2021 14:20:43
Problema Baruri Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:9: error: "and" cannot be used as a macro name as it is an operator in C++ #define and(x) ( x & (-x) ) ^~~ main.cpp: In function 'int query(int)': main.cpp:13:34: error: expected identifier before '(' token for (int i = p; i > 0; i -= and (i)) ^ main.cpp:13:34: error: expected ')' before '(' token main.cpp:13:37: error: expected ';' before ')' token for (int i = p; i > 0; i -= and (i)) ^ main.cpp:13:35: warning: statement has no effect [-Wunused-value] for (int i = p; i > 0; i -= and (i)) ~^~ main.cpp: In function 'void Init()': main.cpp:27:35: error: expected identifier before '(' token for (int j = i; i <= N; j += and(j)) B[j] += x; ^ main.cpp:27:35: error: expected ')' before '(' token main.cpp:27:38: error: expected ';' before ')' token for (int j = i; i <= N; j += and(j)) B[j] += x; ^ main.cpp:27:36: warning: statement has no effect [-Wunused-value] for (int j = i; i <= N; j += and(j)) B[j] += x; ~^~ main.cpp: In function 'void Rezolvare()': main.cpp:47:47: error: expected identifier before '(' token for (int j = Bo; j <= N; j += and (j)) B[j] += X; ^ main.cpp:47:47: error: expected ')' before '(' token main.cpp:47:50: error: expected ';' before ')' token for (int j = Bo; j <= N; j += and (j)) B[j] += X; ^ main.cpp:47:48: warning: statement has no effect [-Wunused-value] for (int j = Bo; j <= N; j += and (j)) B[j] += X; ~^~ main.cpp:53:47: error: expected identifier before '(' token for (int j = Bo; j <= N; j += and (j)) B[j] -= X; ^ main.cpp:53:47: error: expected ')' before '(' token main.cpp:53:50: error: expected ';' before ')' token for (int j = Bo; j <= N; j += and (j)) B[j] -= X; ^ main.cpp:53:48: warning: statement has no effect [-Wunused-value] for (int j = Bo; j <= N; j += and (j)) B[j] -= X; ~^~ main.cpp:59:47: error: expected identifier before '(' token for (int j = B1; j <= N; j += and (j)) B[j] += X; ^ main.cpp:59:47: error: expected ')' before '(' token Non zero exit status: 1

Ceva nu functioneaza?