Borderou de evaluare (job #1741407)
Utilizator | Cazaciuc Valentin alittlezz | Data | 13 august 2016 20:26:51 |
---|---|---|---|
Problema | Cub | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read_data()’:
user.cpp:37:3: error: ‘ifstream’ was not declared in this scope
ifstream f(Fin);
^
user.cpp:37: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:37:12: error: expected ‘;’ before ‘f’
ifstream f(Fin);
^
user.cpp:38:3: error: ‘f’ was not declared in this scope
f>>N>>K;
^
user.cpp: In function ‘void write_data()’:
user.cpp:50:3: error: ‘ofstream’ was not declared in this scope
ofstream g(Fout);
^
user.cpp:50: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:160:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^
user.cpp:50:12: error: expected ‘;’ before ‘g’
ofstream g(Fout);
^
user.cpp:53:6: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(Lg[ F[i] ][ L[i] ][ C[i] ]!=infinit)
^
user.cpp:56:20: error: ‘g’ was not declared in this scope
if(min==infinit) g<<"Eroare !";
^
user.cpp:58:4: error: ‘g’ was not declared in this scope
g<<min<<'\n';
^
user.cpp:61:3: error: ‘g’ was not declared in this scope
g.close();
^
user.cpp:49:27: warning: unused variable ‘j’ [-Wunused-variable]
int i, nrt, min=infinit,j;
^
user.cpp: In function ‘void urm(int&, int&, int&, char)’:
user.cpp:78:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !