Borderou de evaluare (job #2166262)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 13 martie 2018 16:20:38
Problema Semafoare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:17: error: ‘short int y1’ redeclared as different kind of symbol short n, m, x1, y1, x2, y2, i, j, k, op, t, tim, tr[100], v[1010][1010][4], b[1010][1010]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/assert.h:35, from /usr/include/c++/5/cassert:43, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:33, from user.cpp:1: /usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’ __MATHCALL (y1,, (_Mdouble_)); ^ user.cpp: In function ‘int Solve()’: user.cpp:18:13: error: invalid types ‘short int [1010][4][double(double) throw ()]’ for array subscript v[x1][y1][tr[c]] = 0; ^ user.cpp:18:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] v[x1][y1][tr[c]] = 0; ^ user.cpp:19:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] Q[0].push_back({x1,y1,tr[c]}); ^ user.cpp:19:33: error: no matching function for call to ‘std::deque<elem>::push_back(<brace-enclosed initializer list>)’ Q[0].push_back({x1,y1,tr[c]}); ^ In file included from /usr/include/c++/5/deque:64:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:67, from user.cpp:1: /usr/include/c++/5/bits/stl_deque.h:1516:7: note: candidate: void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = elem; _Alloc = std::allocator<elem>; std::deque<_Tp, _Alloc>::value_type = elem] push_back(const value_type& __x) ^ /usr/include/c++/5/bits/stl_deque.h:1516:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const elem&}’ /usr/include/c++/5/bits/stl_deque.h:1531:7: note: candidate: void std::deque<_Tp, _Alloc>::push_back(std::deque<_Tp, _Alloc>::value_type&&) [with _Tp = elem; _Alloc = std::allocator<elem>; std::deque<_Tp, _Alloc>::value_type = elem] push_back(value_type&& __x) ^ /usr/include/c++/5/bits/stl_deque.h:1531:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::deque<elem>::value_type&& {aka elem&&}’ user.cpp: In function ‘int main()’: user.cpp:50:23: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ and ‘double(double) throw ()’) f >> n >> m >> x1 >> y1 >> c >> x2 >> y2; ^ In file included from /usr/include/c++/5/sstream:38:0, from /usr/include/c++/5/complex:45, from /usr/include/c++/5/ccomplex:38, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/stdc++.h:52, from user.cpp:1: /usr/include/c++/5/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++/5/istream:120:7: note: conversion of argument 1 would be ill-formed: user.cpp:50:26: 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] f >> n >> m >> x1 >> y1 >> c >> x2 >> y2;

Ceva nu functioneaza?