Borderou de evaluare (job #2331866)

Utilizator volomiNovac Mihaela volomi Data 30 ianuarie 2019 07:30:33
Problema Reteta2 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:11: error: no match for 'operator>>' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'int [99]') cin>>timp; ~~~^~~~~~ In file included from /usr/include/c++/6/iostream:40: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:13: warning: the address of 'timp' will always evaluate as 'true' [-Waddress] cin>>timp; ^~~~ main.cpp:11:13: error: invalid initialization of non-const reference of type 'bool&' from an rvalue of type 'bool' In file included from /usr/include/c++/6/iostream:40: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:13: error: invalid conversion from 'int*' to 'short int' [-fpermissive] cin>>timp; ^~~~ main.cpp:11:13: error: cannot bind rvalue '(short int)((int*)(& timp))' to 'short int&' In file included from /usr/include/c++/6/iostream:40: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:13: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive] cin>>timp; ^~~~ main.cpp:11:13: error: cannot bind rvalue '(short unsigned int)((int*)(& timp))' to 'short unsigned int&' In file included from /usr/include/c++/6/iostream:40: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:13: error: invalid conversion from 'int*' to 'int' [-fpermissive] cin>>timp; ^~~~ main.cpp:11:13: error: cannot bind rvalue '(int)((int*)(& timp))' to 'int&' In file included from /usr/include/c++/6/iostream:40: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?