Borderou de evaluare (job #1532148)
Utilizator | Data | 21 noiembrie 2015 15:03:46 | |
---|---|---|---|
Problema | Licenta | Status | done |
Runda | FMI No Stress 6 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:42: error: expected identifier before numeric constant
scanf ("%d%d", &a[0][i].first, &[0][i].second);
^
user.cpp: In lambda function:
user.cpp:16:44: error: expected ‘{’ before ‘[’ token
scanf ("%d%d", &a[0][i].first, &[0][i].second);
^
user.cpp: In function ‘int main()’:
user.cpp:16:44: error: no match for ‘operator[]’ (operand types are ‘main()::__lambda0’ and ‘int’)
user.cpp:20:42: error: expected identifier before numeric constant
scanf ("%d%d", &a[1][i].first, &[1][i].second);
^
user.cpp: In lambda function:
user.cpp:20:44: error: expected ‘{’ before ‘[’ token
scanf ("%d%d", &a[1][i].first, &[1][i].second);
^
user.cpp: In function ‘int main()’:
user.cpp:20:44: error: no match for ‘operator[]’ (operand types are ‘main()::__lambda1’ and ‘int’)
user.cpp:53:5: error: ‘f’ was not declared in this scope
f.close();
^
user.cpp:54:5: error: ‘g’ was not declared in this scope
g.close();
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = interval*]’:
/usr/include/c++/4.8/bits/stl_algo.h:2235:62: required from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = interval*]’
/usr/include/c++/4.8/bits/stl_algo.h:5476:47: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = interval*]’
user.cpp:22:24: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2161:13: error: no match for ‘operator<’ (operand types are ‘interval’ and ‘interval’)
if (*__i < *__first)
^
/usr/include/c++/4.8/bits/stl_algo.h:2161:13: note: candidates are:
In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
from /usr/include/c++/4.8/bits/char_traits.h:39,
from /usr/include/c++/4.8/ios:40,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template<class _T1, class _T2> constexpr bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
^
/usr/include/c++/4.8/bits/stl_pair.h:220:5: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:2161:13: note: ‘interval’ is not derived from ‘const std::pair<_T1, _T2>’
if (*__i < *__first)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !