Borderou de evaluare (job #780757)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Parola (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 30 iun. 2024 10:03:46 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:11:14: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int [10]')
11 | cin >> k >> a >> b;
| ~~~~~~~~ ^~ ~
| | |
| | int [10]
| std::basic_istream<char>::__istream_type {aka std::basic_istream<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:11:17: error: cannot bind non-const lvalue reference of type 'void*&' to an rvalue of type 'void*'
11 | cin >> k >> a >> b;
| ^
/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:11:17: error: invalid conversion from 'int*' to 'long long unsigned int' [-fpermissive]
11 | cin >> k >> a >> b;
| ^
| |
| int*
main.cpp:11:17: error: cannot bind rvalue '(long long unsigned int)((int*)(& a))' to 'long long unsigned int&'
/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)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:197:7: note: conversion of argument 1 would be ill-formed:
main.cpp:11:17: error: invalid conversion from 'int*' to 'long long int' [-fpermissive]
11 | cin >> k >> a >> b;
| ^
| |
| int*
main.cpp:11:17: error: cannot bind rvalue '(long long int)((int*)(& a))' to 'long long int&'
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:192:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
192 | operator>>(unsigned long& __n)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:192:7: note: conversion of argument 1 would be ill-formed:
main.cpp:11:17: error: invalid conversion from 'int*' to 'long unsigned int' [-fpermissive]
11 | cin >> k >> a >> b;
| ^
| |
| int*
main.cpp:11:17: error: cannot bind rvalue '(long unsigned int)((int*)(& a))' to 'long unsigned int&'
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:188:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match)
188 | operator>>(long& __n)
| ^~~~~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/istream:188:7: note: conversion of argument 1 would be ill-formed: