Borderou de evaluare (job #1574010)
Utilizator | Data | 20 ianuarie 2016 08:12:05 | |
---|---|---|---|
Problema | Mosia | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:1: error: expected unqualified-id before numeric constant
0001
^
user.cpp:13:1: error: ‘ifstream’ does not name a type
ifstream f("mosia.in");
^
user.cpp:14:1: error: ‘ofstream’ does not name a type
ofstream g("mosia.out");
^
user.cpp: In function ‘int main()’:
user.cpp:57:5: error: ‘f’ was not declared in this scope
f >> n;
^
user.cpp:72:32: error: ‘swap’ was not declared in this scope
swap(points[1], points[pos]);
^
user.cpp:72:32: note: suggested alternatives:
In file included from /usr/include/c++/4.8/bits/stl_algo.h:66:0,
from /usr/include/c++/4.8/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.8/functional:2570:5: note: ‘std::swap’
swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y)
^
In file included from /usr/include/c++/4.8/exception:152:0,
from /usr/include/c++/4.8/ios:39,
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/bits/exception_ptr.h:160:5: note: ‘std::__exception_ptr::swap’
swap(exception_ptr& __lhs, exception_ptr& __rhs)
^
user.cpp:73:41: error: ‘sort’ was not declared in this scope
sort(points + 2, points + n + 1, cmp);
^
user.cpp:73:41: note: suggested alternative:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:5497:5: note: ‘std::sort’
sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
^
user.cpp:107:5: error: ‘g’ was not declared in this scope
g << fixed << setprecision(7) << getMax(d[0][n], d[1][n]);
^
user.cpp:107:10: error: ‘fixed’ was not declared in this scope
g << fixed << setprecision(7) << getMax(d[0][n], d[1][n]);
^
user.cpp:107:10: note: suggested alternative:
In file included from /usr/include/c++/4.8/ios:42:0,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !