Borderou de evaluare (job #1904553)
Utilizator | Data | 5 martie 2017 17:14:55 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:1: error: ‘ofstrean’ does not name a type
ofstrean fout( "date.out" );
^
user.cpp: In function ‘char getch()’:
user.cpp:24:38: error: invalid user-defined conversion from ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘FILE* {aka _IO_FILE*}’ [-fpermissive]
fread( buffer, 1, buff_size, fin );
^
In file included from /usr/include/c++/4.8/ios:44:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_ios.h:115:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>
operator void*() const
^
/usr/include/c++/4.8/bits/basic_ios.h:115:7: note: no known conversion for implicit ‘this’ parameter from ‘void*’ to ‘FILE* {aka _IO_FILE*}’
user.cpp: In function ‘int main()’:
user.cpp:83:3: error: ‘fout’ was not declared in this scope
fout << co << '\n';
^
user.cpp:62:8: warning: unused variable ‘ch’ [-Wunused-variable]
char ch;
^
user.cpp: In function ‘char getch()’:
user.cpp:24:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread( buffer, 1, buff_size, fin );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !