Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a=0,b=0;
	cin>>a>>b;
	if (a==1) cout<<'1';break;
	
	if (a==2&&b<2){ cout<<'1';break;
	else cout<<'2';break;}
	
	if (a==3&&b<3){ cout<<'2';break;
	else cout << '3';break;}
	
	if (a==4&&b<4) {cout<<'3';break;
	else cout << '4';break;}
	
	if (a==5&&b<5){ cout<<'4';break;
	else cout << '5';break;}
	
	if (a==6&&b<6){ cout<<'5';break;
	else cout << '6';break;}
	
	if (a==7&&b<7){ cout<<'6';break;
	else cout << '7';break;}
	
	if (a==8&&b<8){ cout<<'7';break;
	else cout << '8';break;}
	
	if (a==9&&b<9){ cout<<'8';break;
	else cout << '9';break;}
	
	if (a==10&&b<10){ cout<<'9';break;
	else cout << '10';break;}
	
	if (a==11&&b<11){ cout<<'10';break;
	else cout << '11';break;}
	
	if (a==12&&b<12){ cout<<'11';break;
	else cout << '12';break;}
	
	return 0;
}

Compiler output:
a.cc:34:22: warning: multi-character character constant [-Wmultichar]
   34 |         else cout << '10';break;}
      |                      ^~~~
a.cc:36:33: warning: multi-character character constant [-Wmultichar]
   36 |         if (a==11&&b<11){ cout<<'10';break;
      |                                 ^~~~
a.cc:37:22: warning: multi-character character constant [-Wmultichar]
   37 |         else cout << '11';break;}
      |                      ^~~~
a.cc:39:33: warning: multi-character character constant [-Wmultichar]
   39 |         if (a==12&&b<12){ cout<<'11';break;
      |                                 ^~~~
a.cc:40:22: warning: multi-character character constant [-Wmultichar]
   40 |         else cout << '12';break;}
      |                      ^~~~
a.cc: In function 'int main()':
a.cc:7:29: error: break statement not within loop or switch
    7 |         if (a==1) cout<<'1';break;
      |                             ^~~~~
a.cc:9:35: error: break statement not within loop or switch
    9 |         if (a==2&&b<2){ cout<<'1';break;
      |                                   ^~~~~
a.cc:10:9: error: expected '}' before 'else'
   10 |         else cout<<'2';break;}
      |         ^~~~
a.cc:9:23: note: to match this '{'
    9 |         if (a==2&&b<2){ cout<<'1';break;
      |                       ^
a.cc:10:24: error: break statement not within loop or switch
   10 |         else cout<<'2';break;}
      |                        ^~~~~
a.cc: At global scope:
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if (a==3&&b<3){ cout<<'2';break;
      |         ^~
a.cc:15:9: error: expected unqualified-id before 'if'
   15 |         if (a==4&&b<4) {cout<<'3';break;
      |         ^~
a.cc:18:9: error: expected unqualified-id before 'if'
   18 |         if (a==5&&b<5){ cout<<'4';break;
      |         ^~
a.cc:21:9: error: expected unqualified-id before 'if'
   21 |         if (a==6&&b<6){ cout<<'5';break;
      |         ^~
a.cc:24:9: error: expected unqualified-id before 'if'
   24 |         if (a==7&&b<7){ cout<<'6';break;
      |         ^~
a.cc:27:9: error: expected unqualified-id before 'if'
   27 |         if (a==8&&b<8){ cout<<'7';break;
      |         ^~
a.cc:30:9: error: expected unqualified-id before 'if'
   30 |         if (a==9&&b<9){ cout<<'8';break;
      |         ^~
a.cc:33:9: error: expected unqualified-id before 'if'
   33 |         if (a==10&&b<10){ cout<<'9';break;
      |         ^~
a.cc:36:9: error: expected unqualified-id before 'if'
   36 |         if (a==11&&b<11){ cout<<'10';break;
      |         ^~
a.cc:39:9: error: expected unqualified-id before 'if'
   39 |         if (a==12&&b<12){ cout<<'11';break;
      |         ^~
a.cc:42:9: error: expected unqualified-id before 'return'
   42 |         return 0;
      |         ^~~~~~
a.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^