Borderou de evaluare (job #2414798)

Utilizator Hey_HeyIacovlev Denis Hey_Hey Data 25 aprilie 2019 09:04:54
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:2:10: warning: ISO C++11 requires whitespace after the macro name #define x&(-x) ^ main.cpp:2:12: error: expected unqualified-id before '-' token #define x&(-x) ^ main.cpp:12:11: note: in expansion of macro 'x' int M,i,q,x,a,b; ^ main.cpp:2:12: error: expected ')' before '-' token #define x&(-x) ^ main.cpp:12:11: note: in expansion of macro 'x' int M,i,q,x,a,b; ^ main.cpp:2:12: error: expected initializer before '-' token #define x&(-x) ^ main.cpp:12:11: note: in expansion of macro 'x' int M,i,q,x,a,b; ^ main.cpp: In function 'void add(int, int)': main.cpp:17:30: error: expected ')' before 'S' for(k=a;k<=N;k+=(k&(-k)) S[i]+=b; ^ main.cpp: In function 'int main()': main.cpp:2:13: error: 'x' was not declared in this scope #define x&(-x) ^ main.cpp:35:15: note: in expansion of macro 'x' fi >> x; ^ main.cpp:39:16: error: 'm' was not declared in this scope for(i=1;i<=m;i++) ^ main.cpp:41:20: error: 'a' was not declared in this scope fi >> q >> a >> b; ^ main.cpp:41:25: error: 'b' was not declared in this scope fi >> q >> a >> b; ^ main.cpp:43:12: error: 'caz' was not declared in this scope if(caz) fo << total(b)-total(a-1) << '\n'; ^~~ Non zero exit status: 1

Ceva nu functioneaza?