#include<iostream>
#include<array>
#include<string>
using namespace std;
void print_gene_table2( array < array< string,6 > ,22 > ) ;
int main( )
{
// EXCEPTION: too many initializers for ‘std::array<std::array<std::basic_string<char>, 6ul>, 22ul>’
array < array< string,6 > ,22 > gene_table1
{
{ "UUU" ,"UUC" } , // Phe
{ "UUA" ,"UUG" ,"CUU" ,"CUC" ,"CUA" ,"CUG" } , // Leu
{ "UCU" ,"UCC" ,"UCA" ,"UCG" ,"AGU" ,"AGC" } , // Ser
{ "UAU" ,"UAC" } , // Tyr
{ "UAA" ,"UAG" ,"UGA" } , // STO
{ "UGU" ,"UGC" } , // Cys
{ "UGG" } , // Trp
{ "CCU" ,"CCC" ,"CCA" ,"CCG" } , // Pro
{ "CAU" ,"CAC" } , // His
{ "CAA" ,"CAG" } , // Gln
{ "CGU" ,"CGC" ,"CGA" ,"CGG" } , // Arg
{ "AUU" ,"AUC" ,"AUA" } , // Ile
{ "AUG" } , // STA or Met
{ "ACU" ,"ACC" ,"ACA" ,"ACG" } , // Thr
{ "AAU" ,"AAC" } , // Asn
{ "AAA" ,"AAG" } , // Lys
{ "AGA" ,"AGG" } , // Arg
{ "GUU" ,"GUC" ,"GUA" ,"GUG" } , // Val
{ "GCU" ,"GCC" ,"GCA" ,"GCG" } , // Ala
{ "GAU" ,"GAC" } , // Asp
{ "GAA" ,"GAG" } , // Glu
{ "GGU" ,"GGC" ,"GGA" ,"GGG" } // Gly
} ;
print_gene_table2( gene_table1) ;
return 0 ;
}
void print_gene_table2( array < array< string,6 > ,22 > gene_table1)
{
for ( unsigned i = 0 ; gene_table1.size ( ) ; i++ )
for ( unsigned j = 0 ; j < gene_table1[ i] .size ( ) ; j++ )
{
cout << gene_table1[ i] [ j] << endl;
}
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPGFycmF5PgojaW5jbHVkZTxzdHJpbmc+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgp2b2lkIHByaW50X2dlbmVfdGFibGUyKGFycmF5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ICAgICAgICAgICAgICAgICAgIC8vIFNUQSBvciBNZXQKICAgIHsiQUNVIiwiQUNDIiwiQUNBIiwiQUNHIn0sICAgICAgICAgICAgICAvLyBUaHIKICAgIHsiQUFVIiwiQUFDIn0sICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBBc24KICAgIHsiQUFBIiwiQUFHIn0sICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBMeXMKICAgIHsiQUdBIiwiQUdHIn0sICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBBcmcKICAgIHsiR1VVIiwiR1VDIiwiR1VBIiwiR1VHIn0sICAgICAgICAgICAgICAvLyBWYWwKICAgIHsiR0NVIiwiR0NDIiwiR0NBIiwiR0NHIn0sICAgICAgICAgICAgICAvLyBBbGEKICAgIHsiR0FVIiwiR0FDIn0sICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBBc3AKICAgIHsiR0FBIiwiR0FHIn0sICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBHbHUKICAgIHsiR0dVIiwiR0dDIiwiR0dBIiwiR0dHIn0gICAgICAgICAgICAgICAvLyBHbHkKICB9OwogIAogIHByaW50X2dlbmVfdGFibGUyKGdlbmVfdGFibGUxKTsKCiAgcmV0dXJuIDA7Cn0KCnZvaWQgcHJpbnRfZ2VuZV90YWJsZTIoYXJyYXkgPCBhcnJheTxzdHJpbmcsNj4sMjIgPiBnZW5lX3RhYmxlMSkgCnsgCiAgZm9yKHVuc2lnbmVkIGkgPSAwO2dlbmVfdGFibGUxLnNpemUoKTtpKyspCiAgICBmb3IodW5zaWduZWQgaiA9IDA7aiA8IGdlbmVfdGFibGUxW2ldLnNpemUoKTtqKyspCiAgICB7IAogICAgICBjb3V0IDw8IGdlbmVfdGFibGUxW2ldW2pdIDw8IGVuZGw7CiAgICB9Cn0=