Borderou de evaluare (job #2202481)
Utilizator | Data | 8 mai 2018 21:22:23 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:8:4: error: ‘ifstream’ was not declared in this scope
ifstream f("royfloyd.in");
^~~~~~~~
user.cpp:8:4: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from user.cpp:1:
/usr/include/c++/6/iosfwd:162:34: note: ‘std::ifstream’
typedef basic_ifstream<char> ifstream;
^~~~~~~~
user.cpp:9:4: error: ‘ofstream’ was not declared in this scope
ofstream g("royfloyd.out");
^~~~~~~~
user.cpp:9:4: note: suggested alternative:
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from user.cpp:1:
/usr/include/c++/6/iosfwd:165:34: note: ‘std::ofstream’
typedef basic_ofstream<char> ofstream;
^~~~~~~~
user.cpp:12:5: error: ‘f’ was not declared in this scope
f>>n ;
^
user.cpp: In function ‘void afis()’:
user.cpp:31:34: error: ‘g’ was not declared in this scope
for (j = 1; j <= n; j++) g<<a[i][j]<<" " ;
^
user.cpp:32:9: error: ‘g’ was not declared in this scope
g<<endl ;
^
user.cpp:32:12: error: ‘endl’ was not declared in this scope
g<<endl ;
^~~~
user.cpp:32:12: note: suggested alternative:
In file included from /usr/include/c++/6/iostream:39:0,
from user.cpp:1:
/usr/include/c++/6/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !