Borderou de evaluare (job #2027716)

Utilizator AdiMunteanAdrian Muntean AdiMuntean Data 26 septembrie 2017 17:16:55
Problema Fractii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:12: warning: missing terminating " character [enabled by default] ofstream g("fractii.out); ^ user.cpp:5:1: error: missing terminating " character ofstream g("fractii.out); ^ user.cpp:8:1: error: expected ‘)’ before ‘{’ token { ^ user.cpp: In function ‘std::ofstream g(int (*)(int, int))’: user.cpp:9:8: error: ‘a’ was not declared in this scope while(a!=b) ^ user.cpp:9:11: error: ‘b’ was not declared in this scope while(a!=b) ^ user.cpp:14:9: error: ‘a’ was not declared in this scope return a; ^ user.cpp: In function ‘int main()’: user.cpp:24:16: error: ‘cmmdc’ was not declared in this scope if(cmmdc(q,p)==1) ^ user.cpp:27:5: error: invalid operands of types ‘std::ofstream(int (*)(int, int)) {aka std::basic_ofstream<char>(int (*)(int, int))}’ and ‘int’ to binary ‘operator<<’ g<<nr; ^ user.cpp:29:4: error: request for member ‘close’ in ‘g’, which is of non-class type ‘std::ofstream(int (*)(int, int)) {aka std::basic_ofstream<char>(int (*)(int, int))}’ g.close(); ^ user.cpp: In function ‘std::ofstream g(int (*)(int, int))’: user.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?