Borderou de evaluare (job #2786953)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 22 octombrie 2021 09:11:25
Problema Muzeu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:6: error: conflicting declaration 'char c' 6 | char c; | ^ main.cpp:5:19: note: previous declaration as 'int c [3][62502]' 5 | int n,a[252][252],c[3][62502],l,i,j,x[]={-1,0,1,0},y[]={0,1,0,-1}; | ^ main.cpp: In function 'int main()': main.cpp:11:14: error: no match for 'operator>>' (operand types are 'std::ifstream' {aka 'std::basic_ifstream<char>'} and 'int [3][62502]') 11 | f>>c; | ~^~~ | | | | | int [3][62502] | std::ifstream {aka std::basic_ifstream<char>} In file included from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/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) 168 | operator>>(bool& __n) | ^~~~~~~~ /usr/include/c++/10/istream:168:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:16: error: cannot bind non-const lvalue reference of type 'bool&' to an rvalue of type 'bool' 11 | f>>c; | ^ In file included from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/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++/10/istream:172:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:16: error: invalid conversion from 'int (*)[62502]' to 'short int' [-fpermissive] 11 | f>>c; | ^ | | | int (*)[62502] main.cpp:11:16: error: cannot bind rvalue '(short int)((int (*)[62502])(& c))' to 'short int&' In file included from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/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) 175 | operator>>(unsigned short& __n) | ^~~~~~~~ /usr/include/c++/10/istream:175:7: note: conversion of argument 1 would be ill-formed: main.cpp:11:16: error: invalid conversion from 'int (*)[62502]' to 'short unsigned int' [-fpermissive] 11 | f>>c; | ^ | | | int (*)[62502] main.cpp:11:16: error: cannot bind rvalue '(short unsigned int)((int (*)[62502])(& c))' to 'short unsigned int&' In file included from /usr/include/c++/10/fstream:38, from main.cpp:1: /usr/include/c++/10/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); Non zero exit status: 1

Ceva nu functioneaza?