Borderou de evaluare (job #833429)

Utilizator avatar marinus Nerdvana 6 Marin Andrei marinus IP ascuns
Problemă Fotbal3 (clasa a 6-a) Compilator cpp
Rundă pg-marin Status evaluat
Dată 5 sept. 2025 15:57:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:11:16: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>' and 'int [5003]') 11 | cin>>cer>>x>>f>>m>>a>>n; | ~~~~~~~~~~~^~~ | | | | | int [5003] | std::basic_istream<char> In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/fstream:40, from main.cpp:1: /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:170: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) 170 | operator>>(bool& __n) | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:170:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:18: warning: the address of 'f' will never be NULL [-Waddress] 11 | cin>>cer>>x>>f>>m>>a>>n; | ^ main.cpp:6:24: note: 'f' declared here 6 | int d[5003], e[5003], f[5003]; | ^ main.cpp:11:18: error: cannot bind non-const lvalue reference of type 'bool&' to a value of type 'int*' 11 | cin>>cer>>x>>f>>m>>a>>n; | ^ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:174: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) 174 | operator>>(short& __n); | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:174:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:18: error: invalid conversion from 'int*' to 'short int' [-fpermissive] 11 | cin>>cer>>x>>f>>m>>a>>n; | ^ | | | int* main.cpp:11:18: error: cannot bind rvalue '(short int)((int*)(& f))' to 'short int&' /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:177: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) 177 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:177:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:18: error: invalid conversion from 'int*' to 'short unsigned int' [-fpermissive] 11 | cin>>cer>>x>>f>>m>>a>>n; | ^ | | | int* main.cpp:11:18: error: cannot bind rvalue '(short unsigned int)((int*)(& f))' to 'short unsigned int&' /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:181: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) 181 | operator>>(int& __n); | ^~~~~~~~ /usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14/istream:181:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:18: error: invalid conversion from 'int*' to 'int' [-fpermissive] 11 | cin>>cer>>x>>f>>m>>a>>n; | ^ | |