Borderou de evaluare (job #799228)

Utilizator heutschivladheutschi vlad heutschivlad Data 18 octombrie 2012 13:34:11
Problema Biti2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4: error: ‘std::ifstream read’ redeclared as different kind of symbol /usr/include/bits/unistd.h:35: error: previous declaration of ‘ssize_t read(int, void*, size_t)’ user.cpp:5: error: ‘std::ofstream write’ redeclared as different kind of symbol /usr/include/unistd.h:363: error: previous declaration of ‘ssize_t write(int, const void*, size_t)’ user.cpp: In function ‘int main()’: user.cpp:10: error: invalid operands of types ‘ssize_t(int, void*, size_t)’ and ‘int’ to binary ‘operator>>’ user.cpp:14: error: invalid operands of types ‘ssize_t(int, void*, size_t)’ and ‘int’ to binary ‘operator>>’ user.cpp:18: error: invalid operands of types ‘ssize_t(int, const void*, size_t)’ and ‘const char [2]’ to binary ‘operator<<’ user.cpp:38: error: invalid operands of types ‘ssize_t(int, const void*, size_t)’ and ‘int’ to binary ‘operator<<’ user.cpp:42: error: request for member ‘close’ in ‘read’, which is of non-class type ‘ssize_t(int, void*, size_t)’ user.cpp:43: error: request for member ‘close’ in ‘write’, which is of non-class type ‘ssize_t(int, const void*, size_t)’

Ceva nu functioneaza?