252362026-02-18 17:38:10algoproFagyasztócpp17Forditási hiba
// UUID: 010d9070-1d1e-4b45-b72f-ef70bd83c4e2
#include <bits/stdc++.h>
using namespace std;

int main() {
	long long n;
    cin>>n;
    vector<pair<long long,long long>> tomb(n+1);
    for(long long i=1; i<=n; i++){
        cin>>tomb[i].first<<tomb[i].second;
    }
    

    
}
Forditási hiba
open /var/local/lib/isolate/415/box/a.out: no such file or directory
main.cpp: In function 'int main()':
main.cpp:10:27: error: no match for 'operator<<' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'long long int')
   10 |         cin>>tomb[i].first<<tomb[i].second;
      |         ~~~~~~~~~~~~~~~~~~^~
      |            |
      |            std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
main.cpp:10:27: note: candidate: 'operator<<(int, long long int)' (built-in)
   10 |         cin>>tomb[i].first<<tomb[i].second;
      |         ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp:10:27: note:   no known conversion for argument 1 from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/12/regex:66,
                 from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:110,
                 from main.cpp:2:
/usr/include/c++/12/bits/regex.h:1675:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
 1675 |     operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
      |     ^~~~~~~~
/usr/include/c++/12/bits/regex.h:1675:5: note:   template argument deduction/substitution failed:
main.cpp:10:37: note:   'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
   10 |         cin>>tomb[i].first<<tomb[i].second;
      |                                     ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:45:
/usr/include/c++/12/cstddef:123:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
  123 |     operator<<(byte __b, _IntegerType __shift) noexcept
      |     ^~~~~~~~
/usr/include/c++/12/cstddef:123:5: note:   template argument deducti...