Borderou de evaluare (job #3269579)

Utilizator maxtraAlex Deonise maxtra Data 19 ianuarie 2025 19:52:21
Problema Fold Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:79:17: error: no match for 'operator>>' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'std::bitset<2005>::reference') 79 | cin >> a[i][j]; In file included from /usr/include/c++/12.2.1/sstream:38, from /usr/include/c++/12.2.1/complex:45, from /usr/include/c++/12.2.1/ccomplex:39, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54, from main.cpp:62: /usr/include/c++/12.2.1/istream:168:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 168 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/12.2.1/istream:168:7: note: conversion of argument 1 would be ill-formed: main.cpp:79:26: error: cannot bind non-const lvalue reference of type 'bool&' to an rvalue of type 'bool' 79 | cin >> a[i][j]; | ^ In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:66: /usr/include/c++/12.2.1/bitset:854:9: note: after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2005]' 854 | operator bool() const _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/12.2.1/istream:172:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 172 | operator>>(short& __n); | ^~~~~~~~ /usr/include/c++/12.2.1/istream:172:7: note: conversion of argument 1 would be ill-formed: main.cpp:79:26: error: cannot bind non-const lvalue reference of type 'short int&' to a value of type 'bool' 79 | cin >> a[i][j]; | ^ /usr/include/c++/12.2.1/bitset:854:9: note: after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2005]' 854 | operator bool() const _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/12.2.1/istream:175:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) 175 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/12.2.1/istream:175:7: note: conversion of argument 1 would be ill-formed: main.cpp:79:26: error: cannot bind non-const lvalue reference of type 'short unsigned int&' to a value of type 'bool' 79 | cin >> a[i][j]; | ^ /usr/include/c++/12.2.1/bitset:854:9: note: after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2005]' 854 | operator bool() const _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/12.2.1/istream:179:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char; _Traits = std::char_traits<char>]' (near match) 179 | operator>>(int& __n); | ^~~~~~~~ /usr/include/c++/12.2.1/istream:179:7: note: conversion of argument 1 would be ill-formed: main.cpp:79:26: error: cannot bind non-const lvalue reference of type 'int&' to a value of type 'bool' 79 | cin >> a[i][j]; | ^ /usr/include/c++/12.2.1/bitset:854:9: note: after user-defined conversion: 'std::bitset<_Nb>::reference::operator bool() const [with long unsigned int _Nb = 2005]' 854 | operator bool() const _GLIBCXX_NOEXCEPT | ^~~~~~~~ /usr/include/c++/12.2.1/istream:182:7: note: candidate: 'std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char; _Traits = std::char_traits<char>; __istream_type = std::basic_istream<char>]' (near match) Non zero exit status: 1

Ceva nu functioneaza?