Borderou de evaluare (job #382041)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Adunare | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 iun. 2018 10:22:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:14: error: ‘std::ifstream read’ redeclared as different kind of symbol
/usr/include/i386-linux-gnu/bits/unistd.h:35:1: error: previous declaration of ‘ssize_t read(int, void*, size_t)’
user.cpp:8:15: error: ‘std::ofstream write’ redeclared as different kind of symbol
/usr/include/unistd.h:367:16: error: previous declaration of ‘ssize_t write(int, const void*, size_t)’
user.cpp: In function ‘int main()’:
user.cpp:12:11: error: invalid operands of types ‘ssize_t(int, void*, size_t) {aka int(int, void*, unsigned int)}’ and ‘int’ to binary ‘operator>>’
user.cpp:13:16: error: invalid operands of types ‘ssize_t(int, const void*, size_t) {aka int(int, const void*, unsigned int)}’ and ‘int’ to binary ‘operator<<’