Borderou de evaluare (job #1763130)
Utilizator | Data | 24 septembrie 2016 12:12:39 | |
---|---|---|---|
Problema | Dir | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:1: error: ‘ofstream’ does not name a type
ofstream g(Fout);
^
user.cpp: In function ‘void rezolvare()’:
user.cpp:78:22: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char *bkslash="\\";
^
user.cpp: In function ‘void afisare()’:
user.cpp:111:3: error: ‘g’ was not declared in this scope
g<<NrSol<<'\n';
^
user.cpp: In function ‘void citire()’:
user.cpp:119:3: error: ‘ifstream’ was not declared in this scope
ifstream f(Fin);
^
user.cpp:119:3: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:38: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/iosfwd:157:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^
user.cpp:119:12: error: expected ‘;’ before ‘f’
ifstream f(Fin);
^
user.cpp:120:3: error: ‘f’ was not declared in this scope
f.get(Sir,3000,'\n');
^
user.cpp: In function ‘void init()’:
user.cpp:127:7: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !