Borderou de evaluare (job #817404)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Compus (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 1 apr. 2025 18:23:59 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:1: error: 'ifstream' does not name a type
12 | ifstream in ("compus.in")
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:20:5: error: 'in' was not declared in this scope; did you mean 'n'?
20 | in>>n>>e>>p;
| ^~
| n
main.cpp:44:9: error: 'swap' was not declared in this scope
44 | swap(v[i],v[index]);
| ^~~~
main.cpp:44:9: note: suggested alternatives:
In file included from main.cpp:10:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/fstream:1352:5: note: 'std::swap'
1352 | swap(basic_fstream<_CharT, _Traits>& __x,
| ^~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h:41,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/exception:166,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ios:41,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/ostream:40,
from /usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/iostream:41,
from main.cpp:9:
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/move.h:214:5: note: 'std::swap'
214 | swap(_Tp& __a, _Tp& __b)
| ^~~~
/usr/lib/gcc/i686-pc-linux-gnu/14/include/g++-v14/bits/exception_ptr.h:229:5: note: 'std::__exception_ptr::swap'
229 | swap(exception_ptr& __lhs, exception_ptr& __rhs)
| ^~~~
main.cpp:55:9: error: 'out' was not declared in this scope
55 | out<<v[i]<<" ";
| ^~~