Borderou de evaluare (job #2950222)
Utilizator | Data | 3 decembrie 2022 12:25:47 | |
---|---|---|---|
Problema | Nuke | Status | done |
Runda | s-a_esuat | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool contain(int, int, int, pii)':
main.cpp:52:8: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
52 | auto [n, m] = b;
| ^
main.cpp: In function 'int main()':
main.cpp:66:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
66 | for(auto &[x, y] : pts) cin >> x >> y, x += lim, y += lim;
| ^
main.cpp:68:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
68 | for(auto &[r, x, y, i] : circ) cin >> x >> y >> r, x += lim, y += lim, i = ptr++;
| ^
main.cpp:72:12: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
72 | for(auto [r, x, y, i] : circ) {
| ^
main.cpp:83:16: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
83 | for(auto [x, y] : pts)
| ^
main.cpp:86:17: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
86 | for(auto &[x, y] : atr)
| ^
main.cpp:90:16: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
90 | for(auto [x, y] : pts)
| ^
main.cpp:104:24: error: could not convert 'o' from 'int' to 'pii' {aka 'std::pair<int, int>'}
104 | if(contain(x, y, r, o))
| ^
| |
| int
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/c++allocator.h:33,
from /usr/include/c++/10/bits/allocator.h:46,
from /usr/include/c++/10/string:41,
from /usr/include/c++/10/bits/locale_classes.h:40,
from /usr/include/c++/10/bits/ios_base.h:41,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/sstream:38,
from /usr/include/c++/10/complex:45,
from /usr/include/c++/10/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/10/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = int; _Args = {std::pair<int, int>}; _Tp = int]':
/usr/include/c++/10/bits/alloc_traits.h:512:17: required from 'static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = int; _Args = {std::pair<int, int>}; _Tp = int; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<int>]'
/usr/include/c++/10/bits/vector.tcc:115:30: required from 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {std::pair<int, int>}; _Tp = int; _Alloc = std::allocator<int>]'
main.cpp:91:67: required from here
/usr/include/c++/10/ext/new_allocator.h:150:4: error: cannot convert 'std::pair<int, int>' to 'int' in initialization
150 | { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !