Borderou de evaluare (job #1764295)
Utilizator | Data | 25 septembrie 2016 13:16:06 | |
---|---|---|---|
Problema | Graf | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:1: error: ‘ifstream’ does not name a type
ifstream fi("graf.in");
^
user.cpp: In function ‘void bfs(int, int*)’:
user.cpp:14:31: error: ‘setmem’ was not declared in this scope
setmem(d,(n+1)*sizeof(int),0);
^
user.cpp:13:9: warning: unused variable ‘q’ [-Wunused-variable]
nod p,q;
^
user.cpp: In function ‘int main()’:
user.cpp:38:2: error: ‘fi’ was not declared in this scope
fi>>n>>m>>x>>y;
^
user.cpp:75:2: error: ‘ofstream’ was not declared in this scope
ofstream fo("graf.out");
^
user.cpp:75:2: 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:75:11: error: expected ‘;’ before ‘fo’
ofstream fo("graf.out");
^
user.cpp:76:2: error: ‘fo’ was not declared in this scope
fo<<nr<<endl;
^
user.cpp:76:10: error: ‘endl’ was not declared in this scope
fo<<nr<<endl;
^
user.cpp:76:10: note: suggested alternative:
In file included from /usr/include/c++/4.8/istream:39:0,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/ostream:564: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 !