Borderou de evaluare (job #1297313)
Utilizator | Data | 21 decembrie 2014 21:49:21 | |
---|---|---|---|
Problema | Grid | Status | done |
Runda | Teme Pregatire ACM Unibuc 2014, Anul I | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:14: error: ‘int y1’ redeclared as different kind of symbol
int n,k,i,x1,y1,x2,y2,val;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/utility:68,
from /usr/include/c++/4.8/algorithm:60,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:9:1: error: ‘fi’ was not declared in this scope
fi>>n>>k;
^
user.cpp:12:10: error: ‘t’ was not declared in this scope
for (t=n*(i+1),j=0;j<n;j++,t--)
^
user.cpp:12:20: error: ‘j’ was not declared in this scope
for (t=n*(i+1),j=0;j<n;j++,t--)
^
user.cpp:15:6: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>x1>>y1>>x2>>y2;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:3:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0,
from /usr/include/c++/4.8/algorithm:61,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h: In instantiation of ‘void std::advance(_InputIterator&, _Distance) [with _InputIterator = std::_Fwd_list_iterator<int>; _Distance = double (*)(double)throw ()]’:
user.cpp:17:18: required from here
/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:176:71: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::__iterator_traits<std::_Fwd_list_iterator<int>, true>::difference_type {aka int}’ [-fpermissive]
typename iterator_traits<_InputIterator>::difference_type __d = __n;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !