Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, K;
  cin >> N >> K;

if(N=1 && K=1){
  cout << 3 << endl;
}
else if(N=1 && K=2){
  cout << 1 << endl;
}
else if(N=2 && K=1){
  cout << 7 << endl;
}
else if(N=2 && K=2){
  cout << 4 << endl;
}
else if(N=2 && K=3){
  cout << 1 << endl;
}
else if(N=3 && K=1){
  cout << 14 << endl;
}
else if(N=3 && K=2){
  cout << 10 << endl;
}
else if(N=3 && K=3){
  cout << 5 << endl;
}
else if(N=3 && K=4){
  cout << 1 << endl;
}
else if(N=4 && K=1){
  cout << 25 << endl;
}
else if(N=4 && K=2){
  cout << 20 << endl;
}
else if(N=4 && K=3){
  cout << 13 << endl;
}
else if(N=4 && K=4){
  cout << 6 << endl;
}
else if(N=4 && K=5){
  cout << 1 << endl;
}
else if(N=5 && K=1){
  cout << 34 << endl;
}
else if(N=5 && K=2){
  cout << 28 << endl;
}
else if(N=5 && K=3){
  cout << 21 << endl;
}
else if(N=5 && K=4){
  cout << 14 << endl;
}
else if(N=5 && K=5){
  cout << 7 << endl;
}
else if(N=5 && K=6){
  cout << 1 << endl;
}

else if(N > 5){
  cout << 7 * (N+1 - K) + 1 << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: lvalue required as left operand of assignment
    8 | if(N=1 && K=1){
      |      ~~^~~~
a.cc:11:13: error: lvalue required as left operand of assignment
   11 | else if(N=1 && K=2){
      |           ~~^~~~
a.cc:14:13: error: lvalue required as left operand of assignment
   14 | else if(N=2 && K=1){
      |           ~~^~~~
a.cc:17:13: error: lvalue required as left operand of assignment
   17 | else if(N=2 && K=2){
      |           ~~^~~~
a.cc:20:13: error: lvalue required as left operand of assignment
   20 | else if(N=2 && K=3){
      |           ~~^~~~
a.cc:23:13: error: lvalue required as left operand of assignment
   23 | else if(N=3 && K=1){
      |           ~~^~~~
a.cc:26:13: error: lvalue required as left operand of assignment
   26 | else if(N=3 && K=2){
      |           ~~^~~~
a.cc:29:13: error: lvalue required as left operand of assignment
   29 | else if(N=3 && K=3){
      |           ~~^~~~
a.cc:32:13: error: lvalue required as left operand of assignment
   32 | else if(N=3 && K=4){
      |           ~~^~~~
a.cc:35:13: error: lvalue required as left operand of assignment
   35 | else if(N=4 && K=1){
      |           ~~^~~~
a.cc:38:13: error: lvalue required as left operand of assignment
   38 | else if(N=4 && K=2){
      |           ~~^~~~
a.cc:41:13: error: lvalue required as left operand of assignment
   41 | else if(N=4 && K=3){
      |           ~~^~~~
a.cc:44:13: error: lvalue required as left operand of assignment
   44 | else if(N=4 && K=4){
      |           ~~^~~~
a.cc:47:13: error: lvalue required as left operand of assignment
   47 | else if(N=4 && K=5){
      |           ~~^~~~
a.cc:50:13: error: lvalue required as left operand of assignment
   50 | else if(N=5 && K=1){
      |           ~~^~~~
a.cc:53:13: error: lvalue required as left operand of assignment
   53 | else if(N=5 && K=2){
      |           ~~^~~~
a.cc:56:13: error: lvalue required as left operand of assignment
   56 | else if(N=5 && K=3){
      |           ~~^~~~
a.cc:59:13: error: lvalue required as left operand of assignment
   59 | else if(N=5 && K=4){
      |           ~~^~~~
a.cc:62:13: error: lvalue required as left operand of assignment
   62 | else if(N=5 && K=5){
      |           ~~^~~~
a.cc:65:13: error: lvalue required as left operand of assignment
   65 | else if(N=5 && K=6){
      |           ~~^~~~