Borderou de evaluare (job #1743241)
Utilizator | Data | 17 august 2016 20:21:01 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘uint64_t* {aka long long unsigned int*}’ [-Wformat=]
scanf("%d", &N);
^
user.cpp:17:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type* {aka long long unsigned int*}’ [-Wformat=]
scanf("%d", &a[i]);
^
user.cpp:24:18: error: parameter declared ‘auto’
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp:24:26: error: parameter declared ‘auto’
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp: In lambda function:
user.cpp:24:38: error: ‘x’ was not declared in this scope
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp:24:45: error: ‘y’ was not declared in this scope
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp: In function ‘int main()’:
user.cpp:35:19: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘uint64_t {aka long long unsigned int}’ [-Wformat=]
printf("%d\n", L);
^
user.cpp:40:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type {aka long long unsigned int}’ [-Wformat=]
printf("%d ", res[i]);
^
user.cpp:41:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int> >::value_type {aka long long unsigned int}’ [-Wformat=]
printf("%d\n", res[L-1]);
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘std::pair<_FIter, _FIter> std::equal_range(_FIter, _FIter, const _Tp&, _Compare) [with _FIter = __gnu_cxx::__normal_iterator<long long unsigned int*, std::vector<long long unsigned int> >; _Tp = long long unsigned int; _Compare = main()::__lambda0]’:
user.cpp:25:5: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2685:31: error: no match for call to ‘(main()::__lambda0) (long long unsigned int&, const long long unsigned int&)’
if (__comp(*__middle, __val))
^
user.cpp:24:11: note: candidate is:
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp:24:27: note: main()::__lambda0
[=](auto x, auto y){return a[x] < a[y];}
^
user.cpp:24:27: note: candidate expects 0 arguments, 2 provided
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:4:
/usr/include/c++/4.8/bits/stl_algo.h:2691:36: error: no match for call to ‘(main()::__lambda0) (const long long unsigned int&, long long unsigned int&)’
else if (__comp(__val, *__middle))
^
user.cpp:24:11: note: candidate is:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !