Borderou de evaluare (job #2358571)

Utilizator Poenaru_OanaPoenaru Oana Poenaru_Oana Data 28 februarie 2019 10:26:04
Problema Ace 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:11:14: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 'int [1001][1001]') fin >> n >> m; ~~~~~~~~~^~~~ In file included from /usr/include/c++/6/fstream:38:0, from main.cpp:1: /usr/include/c++/6/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>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match> operator>>(bool& __n) ^~~~~~~~ /usr/include/c++/6/istream:168:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:17: warning: the address of 'm' will always evaluate as 'true' [-Waddress] fin >> n >> m; ^ main.cpp:11:17: error: invalid initialization of non-const reference of type 'bool&' from an rvalue of type 'bool' In file included from /usr/include/c++/6/fstream:38:0, from main.cpp:1: /usr/include/c++/6/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> operator>>(short& __n); ^~~~~~~~ /usr/include/c++/6/istream:172:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:17: error: invalid conversion from 'int (*)[1001]' to 'short int' [-fpermissive] fin >> n >> m; ^ main.cpp:11:17: error: cannot bind rvalue '(short int)((int (*)[1001])(& m))' to 'short int&' In file included from /usr/include/c++/6/fstream:38:0, from main.cpp:1: /usr/include/c++/6/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>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match> operator>>(unsigned short& __n) ^~~~~~~~ /usr/include/c++/6/istream:175:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:17: error: invalid conversion from 'int (*)[1001]' to 'short unsigned int' [-fpermissive] fin >> n >> m; ^ main.cpp:11:17: error: cannot bind rvalue '(short unsigned int)((int (*)[1001])(& m))' to 'short unsigned int&' In file included from /usr/include/c++/6/fstream:38:0, from main.cpp:1: /usr/include/c++/6/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> operator>>(int& __n); ^~~~~~~~ /usr/include/c++/6/istream:179:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:17: error: invalid conversion from 'int (*)[1001]' to 'int' [-fpermissive] fin >> n >> m; ^ main.cpp:11:17: error: cannot bind rvalue '(int)((int (*)[1001])(& m))' to 'int&' In file included from /usr/include/c++/6/fstream:38:0, from main.cpp:1: /usr/include/c++/6/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>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match> operator>>(unsigned int& __n) ^~~~~~~~ /usr/include/c++/6/istream:182:7: note: conversion of argument 1 would be ill-formed: Non zero exit status: 1

Ceva nu functioneaza?