Borderou de evaluare (job #2310621)
Utilizator | Data | 1 ianuarie 2019 18:15:08 | |
---|---|---|---|
Problema | Cub | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read_data()':
main.cpp:37:3: error: 'ifstream' was not declared in this scope
ifstream f(Fin);
^~~~~~~~
main.cpp:37:3: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: 'std::ifstream'
typedef basic_ifstream<char> ifstream;
^~~~~~~~
main.cpp:38:3: error: 'f' was not declared in this scope
f>>N>>K;
^
main.cpp: In function 'void write_data()':
main.cpp:50:3: error: 'ofstream' was not declared in this scope
ofstream g(Fout);
^~~~~~~~
main.cpp:50:3: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: 'std::ofstream'
typedef basic_ofstream<char> ofstream;
^~~~~~~~
main.cpp:53:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(Lg[ F[i] ][ L[i] ][ C[i] ]!=infinit)
^
main.cpp:56:20: error: 'g' was not declared in this scope
if(min==infinit) g<<"Eroare !";
^
main.cpp:58:4: error: 'g' was not declared in this scope
g<<min<<'\n';
^
main.cpp:61:3: error: 'g' was not declared in this scope
g.close();
^
main.cpp:49:27: warning: unused variable 'j' [-Wunused-variable]
int i, nrt, min=infinit,j;
^
main.cpp: In function 'void urm(int&, int&, int&, char)':
main.cpp:78:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(dir=='V') if(c==1) f=6,c=l,l=1; else c=c-1;
^
main.cpp:84:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(dir=='V') if(c==1) f=6,c=N; else c=c-1;
^
main.cpp:90:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !