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:32: 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:32: 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:34: error: break statement not within loop or switch
    9 |         if (a==2&&b<2) cout<<'1';break;
      |                                  ^~~~~
a.cc:10:9: error: 'else' without a previous 'if'
   10 |         else cout<<'2';break;
      |         ^~~~
a.cc:10:24: error: break statement not within loop or switch
   10 |         else cout<<'2';break;
      |                        ^~~~~
a.cc:12:34: error: break statement not within loop or switch
   12 |         if (a==3&&b<3) cout<<'2';break;
      |                                  ^~~~~
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else cout << '3';break;
      |         ^~~~
a.cc:13:26: error: break statement not within loop or switch
   13 |         else cout << '3';break;
      |                          ^~~~~
a.cc:15:34: error: break statement not within loop or switch
   15 |         if (a==4&&b<4) cout<<'3';break;
      |                                  ^~~~~
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else cout << '4';break;
      |         ^~~~
a.cc:16:26: error: break statement not within loop or switch
   16 |         else cout << '4';break;
      |                          ^~~~~
a.cc:18:34: error: break statement not within loop or switch
   18 |         if (a==5&&b<5) cout<<'4';break;
      |                                  ^~~~~
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else cout << '5';break;
      |         ^~~~
a.cc:19:26: error: break statement not within loop or switch
   19 |         else cout << '5';break;
      |                          ^~~~~
a.cc:21:34: error: break statement not within loop or switch
   21 |         if (a==6&&b<6) cout<<'5';break;
      |                                  ^~~~~
a.cc:22:9: error: 'else' without a previous 'if'
   22 |         else cout << '6';break;
      |         ^~~~
a.cc:22:26: error: break statement not within loop or switch
   22 |         else cout << '6';break;
      |                          ^~~~~
a.cc:24:34: error: break statement not within loop or switch
   24 |         if (a==7&&b<7) cout<<'6';break;
      |                                  ^~~~~
a.cc:25:9: error: 'else' without a previous 'if'
   25 |         else cout << '7';break;
      |         ^~~~
a.cc:25:26: error: break statement not within loop or switch
   25 |         else cout << '7';break;
      |                          ^~~~~
a.cc:27:34: error: break statement not within loop or switch
   27 |         if (a==8&&b<8) cout<<'7';break;
      |                                  ^~~~~
a.cc:28:9: error: 'else' without a previous 'if'
   28 |         else cout << '8';break;
      |         ^~~~
a.cc:28:26: error: break statement not within loop or switch
   28 |         else cout << '8';break;
      |                          ^~~~~
a.cc:30:34: error: break statement not within loop or switch
   30 |         if (a==9&&b<9) cout<<'8';break;
      |                                  ^~~~~
a.cc:31:9: error: 'else' without a previous 'if'
   31 |         else cout << '9';break;
      |         ^~~~
a.cc:31:26: error: break statement not within loop or switch
   31 |         else cout << '9';break;
      |                          ^~~~~
a.cc:33:36: error: break statement not within loop or switch
   33 |         if (a==10&&b<10) cout<<'9';break;
      |                                    ^~~~~
a.cc:34:9: error: 'else' without a previous 'if'
   34 |         else cout << '10';break;
      |         ^~~~
a.cc:34:27: error: break statement not within loop or switch
   34 |         else cout << '10';break;
      |                           ^~~~~
a.cc:36:37: error: break statement not within loop or switch
   36 |         if (a==11&&b<11) cout<<'10';break;
      |                                     ^~~~~
a.cc:37:9: error: 'else' without a previous 'if'
   37 |         else cout << '11';break;
      |         ^~~~
a.cc:37:27: error: break statement not within loop or switch
   37 |         else cout << '11';break;
      |                           ^~~~~
a.cc:39:37: error: break statement not within loop or switch
   39 |         if (a==12&&b<12) cout<<'11';break;
      |                                     ^~~~~
a.cc:40:9: error: 'else' without a previous 'if'
   40 |         else cout << '12';break;
      |         ^~~~
a.cc:40:27: error: break statement not within loop or switch
   40 |         else cout << '12';break;
      |                           ^~~~~