Borderou de evaluare (job #2029657)
Utilizator | Data | 30 septembrie 2017 12:30:40 | |
---|---|---|---|
Problema | Cobai | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:7:27: error: no matching function for call to ‘std::basic_istream<char>::basic_istream(const char [9])’
istream fin("cobai.in");
^
user.cpp:7:27: note: candidates are:
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:606:7: note: std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits<char>]
basic_istream()
^
/usr/include/c++/4.8/istream:606:7: note: candidate expects 0 arguments, 1 provided
/usr/include/c++/4.8/istream:93:7: note: std::basic_istream<_CharT, _Traits>::basic_istream(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
basic_istream(__streambuf_type* __sb)
^
/usr/include/c++/4.8/istream:93:7: note: no known conversion for argument 1 from ‘const char [9]’ to ‘std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
user.cpp:8:5: error: ‘ofstram’ was not declared in this scope
ofstram fout("cobai.out");
^
user.cpp:8:13: error: expected ‘;’ before ‘fout’
ofstram fout("cobai.out");
^
user.cpp:24:9: error: ‘k’ was not declared in this scope
for(k=0;k<strlen(d);k++)
^
user.cpp:24:23: error: ‘strlen’ was not declared in this scope
for(k=0;k<strlen(d);k++)
^
user.cpp:39:11: error: expected ‘}’ at end of input
return 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !