Borderou de evaluare (job #1327641)
Utilizator | Data | 26 ianuarie 2015 22:22:32 | |
---|---|---|---|
Problema | Text | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:16: warning: character constant too long for its type [enabled by default]
{ ifstream f('intrare text.in')
^
user.cpp:7:16: warning: character constant too long for its type [enabled by default]
ofstream g('iesire text.out')
^
user.cpp: In function ‘int main()’:
user.cpp:6:33: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
{ ifstream f('intrare text.in')
^
In file included from user.cpp:3:0:
/usr/include/c++/4.8/fstream:467:7: error: initializing argument 1 of ‘std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]’ [-fpermissive]
basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in)
^
user.cpp:7:5: error: expected ‘,’ or ‘;’ before ‘ofstream’
ofstream g('iesire text.out')
^
user.cpp:10:8: error: ‘a’ was not declared in this scope
f.get(a,100);
^
user.cpp:20:5: error: ‘g’ was not declared in this scope
g<<s/p;
^
user.cpp:22:5: error: expected ‘;’ before ‘g’
g.close()
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !