Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Изволов#2
//g++ 5.4.0 // Заменить знаки вопроса так, чтобы код собирался и работал. # include <cassert> # include <unordered_set> int main () { auto x = ???; // <-- static_assert (not std::is_class<decltype(x)>::value, "x не может быть классом."); static_assert (not std::is_union<decltype(x)>::value, "x не может быть объединением."); std::unordered_set<decltype (x)> set; assert (set.empty ()); set.emplace(x); assert (set.size () == 1); set.emplace (x); assert (set.size () == 2); assert (set.count (x) == 0); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
floyd alfa 1
Optimization Lab 2
Vowel_check
codechef
Dar
Diferenciacion e integracion beta 0.1
Binary tree balanced or not
CPP - Arrays - Ex.4
backtracking
obracanie tablicy
Please log in to post a comment.