Borderou de evaluare (job #3174677)
Utilizator | Data | 25 noiembrie 2023 08:49:26 | |
---|---|---|---|
Problema | Parantezare | Status | done |
Runda | vs_10_smile_again | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:9: error: no match for 'operator>>' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int [100001]')
10 | fin >> sir;
| ~~~ ^~ ~~~
| | |
| | int [100001]
| std::ifstream {aka std::basic_ifstream<char>}
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:1:
/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:10:12: warning: the address of 'sir' will never be NULL [-Waddress]
10 | fin >> sir;
| ^~~
main.cpp:6:9: note: 'sir' declared here
6 | int M , sir[100001] , b[100001];
| ^~~
main.cpp:10:12: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*'
10 | fin >> sir;
| ^~~
/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:10:12: error: invalid conversion from 'int*' to 'short int' [-fpermissive]
10 | fin >> sir;
| ^~~
| |
| int*
main.cpp:10:12: error: cannot bind rvalue '(short int)((int*)(& sir))' to 'short int&'
/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:10:12: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive]
10 | fin >> sir;
| ^~~
| |
| int*
main.cpp:10:12: error: cannot bind rvalue '(short unsigned int)((int*)(& sir))' to 'short unsigned int&'
/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:10:12: error: invalid conversion from 'int*' to 'int' [-fpermissive]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !