Borderou de evaluare (job #2309433)

Utilizator CosaMateiMatei Cosa Gabriel CosaMatei Data 28 decembrie 2018 23:44:43
Problema ZParcurgere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:12: error: 'int y1' redeclared as different kind of symbol int n,k,x1,y1; ^~ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507, from /usr/include/c++/6/cassert:43, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)' __MATHCALL (y1,, (_Mdouble_)); ^ main.cpp: In function 'int solve(int, int, int, int)': main.cpp:14:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x1==x&&y1==y) ^ main.cpp:18:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(x1==x&&y1==y+1) ^ main.cpp:22:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(x1==x+1&&y1==y) ^ main.cpp:31:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if(x1<x+check_val&&y1<y+check_val) ^~~~~~~~~ main.cpp:35:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(x1<x+check_val&&y1>=y+check_val) ^~~~~~~~~ main.cpp:39:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] else if(x1>=x+check_val&&y1<y+check_val) ^~~~~~~~~ main.cpp: In function 'int main()': main.cpp:55:15: error: no match for 'operator>>' (operand types are 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' and 'double(double) throw ()') in>>x1>>y1; ~~~~~~^~~~ In file included from /usr/include/c++/6/sstream:38:0, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52, from main.cpp:1: /usr/include/c++/6/istream:120:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match> operator>>(__istream_type& (*__pf)(__istream_type&)) ^~~~~~~~ /usr/include/c++/6/istream:120:7: note: conversion of argument 1 would be ill-formed: main.cpp:55:17: error: invalid conversion from 'double (*)(double) throw ()' to 'std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}' [-fpermissive] in>>x1>>y1; ^~ In file included from /usr/include/c++/6/sstream:38:0, from /usr/include/c++/6/complex:45, from /usr/include/c++/6/ccomplex:39, Non zero exit status: 1

Ceva nu functioneaza?