Borderou de evaluare (job #1046357)
Utilizator | Data | 2 decembrie 2013 21:03:20 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:3:1: error: ‘ifstream’ does not name a type
ifstream f("algsort.in")
^
user.cpp: In function ‘int main()’:
user.cpp:46:5: error: ‘f’ was not declared in this scope
{ f>>n;
^
user.cpp:46:8: error: ‘n’ was not declared in this scope
{ f>>n;
^
user.cpp:47:9: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:48:6: error: ‘a’ was not declared in this scope
f>>a[i];
^
user.cpp:49:12: error: ‘a’ was not declared in this scope
mergesort(a,b,1,n);
^
user.cpp:49:14: error: ‘b’ was not declared in this scope
mergesort(a,b,1,n);
^
user.cpp:51:9: error: ‘g’ was not declared in this scope
g<<a[i]<<" ";
^
user.cpp:52:5: error: ‘g’ was not declared in this scope
g<<endl;
^
user.cpp:52:8: error: ‘endl’ was not declared in this scope
g<<endl;
^
user.cpp:52:8: note: suggested alternative:
In file included from /usr/local/include/c++/4.8.0/iostream:39:0,
from user.cpp:1:
/usr/local/include/c++/4.8.0/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 !