Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
6 14 15 17 21 33 29
//clang 3.8.0 #include <iostream> #include <array> #include <utility> int main() { constexpr std::array<std::pair<int, int>, 2> foo = {{ { 1, 2 }, { 2, 4 } }}; for(auto& elt: foo) { std::cout << elt.first << ' ' << elt.second << std::endl; } std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Example Node Program
Combination
Sum of Natural Numbers using loop
Array-Based Heap Example Solution
set/map equal_range bug in libc++
SceneGraph Interviewee Task
Tree Traversal and Node
Alternation regex
MiniumNumberDivideConquer
Magic, why 1 2?
Please log in to post a comment.