1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
for(int i=0;i<4;i++){ if (Edit[i]==Edit1[i]){ // бык }else{ bool isMatch=false; for(int j=0;j<4;j++){ if (Edit[i]==Edit1[j]){ isMatch=true; } } if (isMatch){ //корова } } }
1 2
Line 1: error: expected unqualified-id before 'for' compilation terminated due to -Wfatal-errors.