Borderou de evaluare (job #1509125)

Utilizator arvlgeArdeleanu Vlad George arvlge Data 23 octombrie 2015 15:35:32
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:1: error: ‘ifstream’ does not name a type ifstream in("datorii.in"); ^ user.cpp:7:1: error: ‘ofstream’ does not name a type ofstream out("datorii.out"); ^ user.cpp: In function ‘int main()’: user.cpp:12:5: error: ‘in’ was not declared in this scope in>>n>>m; ^ user.cpp:2:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x-1) & x) ^ user.cpp:16:29: note: in expansion of macro ‘zeros’ for(int j=i;j<=n;j+=zeros(j)){ ^ user.cpp:2:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x-1) & x) ^ user.cpp:27:25: note: in expansion of macro ‘zeros’ for(;g>0;g-=zeros(g)) ^ user.cpp:2:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x-1) & x) ^ user.cpp:29:25: note: in expansion of macro ‘zeros’ for(;h>0;h-=zeros(h)) ^ user.cpp:31:13: error: ‘out’ was not declared in this scope out<<s2-s1; ^ user.cpp:2:29: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] #define zeros(x) (x ^ (x-1) & x) ^ user.cpp:35:26: note: in expansion of macro ‘zeros’ for(;g<=n;g+=zeros(g)) ^ user.cpp:41:5: error: ‘out’ was not declared in this scope out.close(); ^

Ceva nu functioneaza?