Borderou de evaluare (job #1785566)

Utilizator tudorcomanTudor Coman tudorcoman Data 21 octombrie 2016 16:12:22
Problema Rute Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘BigInt BigInt::operator+(BigInt)’: user.cpp:30:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v.size(); i++) ^ user.cpp: In member function ‘BigInt BigInt::operator-(BigInt)’: user.cpp:46:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v.size(); i++) ^ user.cpp: In member function ‘BigInt BigInt::operator*(int)’: user.cpp:63:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v.size(); i++) ^ user.cpp: In member function ‘BigInt BigInt::operator/(int)’: user.cpp:83:9: error: ‘reverse’ is not a member of ‘std’ std::reverse(c.v.begin(), c.v.end()); ^ user.cpp: In member function ‘std::string BigInt::str()’: user.cpp:112:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ret += (i < v.size()-1 ? std::string(basewidth-s.size(), '0') : "") + s; ^ user.cpp: In function ‘BigInt operator*(int, BigInt)’: user.cpp:123:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < b.v.size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:141:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rute.in", "r", stdin); ^ user.cpp:142:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rute.out", "w", stdout); ^ user.cpp:144:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^

Ceva nu functioneaza?