2022-03-13から1日間の記事一覧
c++の多次元のtuple(読み方: タプル)の扱いで苦労したので記載する。今回はtupleのvectorで多次元タプルを使用。以下プログラム。 #include <iostream> #include<vector> #include <string> #include <tuple> using namespace std; int main(void){ int n=5; int x[]={1,2,3,4,5}; int y[]={10</tuple></string></vector></iostream>…
以下のコンパイルエラーの対処法についてerror: use of undeclared identifier 'tuple' 'auto' type specifier is a C++11 extension [-Wc++11-extensions][背景] auto型やtupleをプログラム中で使用するときにコンパイルエラーが生じた。 コンパイルは以下…