Borderou de evaluare (job #1999127)
Utilizator | Data | 10 iulie 2017 13:08:55 | |
---|---|---|---|
Problema | Cool | 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:6:21: error: no matching function for call to ‘std::basic_istream<char>::basic_istream(const char [8])’
{istream f("cool.in");
^
user.cpp:6:21: note: candidates are:
In file included from /usr/include/c++/4.8/fstream:38: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 [8]’ to ‘std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
user.cpp:16:1: error: expected ‘;’ before ‘for’
for(i=1;i<=k;i++)
^
user.cpp:16:10: warning: statement has no effect [-Wunused-value]
for(i=1;i<=k;i++)
^
user.cpp:16:17: error: expected ‘;’ before ‘)’ token
for(i=1;i<=k;i++)
^
user.cpp:18:4: error: ‘d’ was not declared in this scope
if(d==k) g<<a[k];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !