Borderou de evaluare (job #1110582)

Utilizator teoionescuIonescu Teodor teoionescu Data 18 februarie 2014 11:09:30
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void read(int&)’: user.cpp:31:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=2;i<s.length();i++) x=x*10+code(s[i]); ^ user.cpp: At global scope: user.cpp:33:11: error: variable or field ‘Read’ declared void void Read(function& x){ ^ user.cpp:33:11: error: reference to ‘function’ is ambiguous user.cpp:16:8: note: candidates are: struct function struct function{ ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/functional:1866:11: note: template<class _Signature> class std::function class function; ^ user.cpp:33:21: error: ‘x’ was not declared in this scope void Read(function& x){ ^ user.cpp:39:1: error: reference to ‘function’ is ambiguous function B;int p; ^ user.cpp:16:8: note: candidates are: struct function struct function{ ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algo.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:62, from user.cpp:2: /usr/local/include/c++/4.8.0/functional:1866:11: note: template<class _Signature> class std::function class function; ^ user.cpp:39:1: error: ‘function’ does not name a type function B;int p; ^ user.cpp: In function ‘int Factor()’: user.cpp:45:14: error: ‘B’ was not declared in this scope if(digit(B.op[p])){ ^ user.cpp: In function ‘int Termen()’: user.cpp:60:11: error: ‘B’ was not declared in this scope while(B.op[p]=='*'){ ^ user.cpp: In function ‘int Expresie()’: user.cpp:68:11: error: ‘B’ was not declared in this scope while(B.op[p]=='+' || B.op[p]=='-'){ ^ user.cpp: At global scope: user.cpp:74:23: error: variable or field ‘getFunctionTerms’ declared void

Ceva nu functioneaza?