Borderou de evaluare (job #763516)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Amedia | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 20 feb. 2024 19:59:21 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:7: error: no match for 'operator>>' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int')
9 | in>>9;
| ~~^~~
| | |
| | int
| std::ifstream {aka std::basic_ifstream<char>}
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:40,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:325:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
325 | operator>>(void*& __p)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:325:7: note: conversion of argument 1 would be ill-formed:
main.cpp:9:9: error: invalid conversion from 'int' to 'void*' [-fpermissive]
9 | in>>9;
| ^
| |
| int
main.cpp:9:9: error: cannot bind rvalue '(void*)9' to 'void*&'
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:224:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
224 | operator>>(long double& __f)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:224:7: note: conversion of argument 1 would be ill-formed:
main.cpp:9:9: error: cannot bind non-const lvalue reference of type 'long double&' to a value of type 'int'
9 | in>>9;
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:220:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
220 | operator>>(double& __f)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:220:7: note: conversion of argument 1 would be ill-formed:
main.cpp:9:9: error: cannot bind non-const lvalue reference of type 'double&' to a value of type 'int'
9 | in>>9;
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:216:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
216 | operator>>(float& __f)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:216:7: note: conversion of argument 1 would be ill-formed:
main.cpp:9:9: error: cannot bind non-const lvalue reference of type 'float&' to a value of type 'int'
9 | in>>9;
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:201:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
201 | operator>>(unsigned long long& __n)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:201:7: note: conversion of argument 1 would be ill-formed:
main.cpp:9:9: error: cannot bind non-const lvalue reference of type 'long long unsigned int&' to a value of type 'int'
9 | in>>9;
| ^
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:197:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
197 | operator>>(long long& __n)
| ^~~~~~~~