Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n;
  cin >> n;
  int syou = n/15;
  int amari = n%15;
  int sum = 0;
  for(int i = 0;i<shou;i++){
    sum += 60+120*i;
  }
  if(amari == 1){
    sum += 15*shou+1;
  }else if(amari == 2){
    sum += 30*shou+3;
  }else if(amari == 3){
    sum += 30*shou+3;
  }else if(amari == 4){
    sum += 45*shou+7;
  }else if(amari == 5){
    sum += 45*shou+7;
  }else if(amari == 6){
    sum += 45*shou+7;
  }else if(amari == 7){
    sum += 60*shou+14;
  }else if(amari == 8){
    sum += 75*shou+22;
  }else if(amari == 9){
    sum += 75*shou+22;
  }else if(amari == 10){
    sum += 75*shou+22;
  }else if(amari == 11){
    sum += 90*shou+33;
  }else if(amari == 12){
    sum += 90*shou+33;
  }else if(amari == 13){
    sum += 105*shou+46;
  }else if(amari == 14){
    sum += 120*shou+60;
  }
  cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'shou' was not declared in this scope; did you mean 'syou'?
   10 |   for(int i = 0;i<shou;i++){
      |                   ^~~~
      |                   syou
a.cc:14:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   14 |     sum += 15*shou+1;
      |               ^~~~
      |               syou
a.cc:16:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   16 |     sum += 30*shou+3;
      |               ^~~~
      |               syou
a.cc:18:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   18 |     sum += 30*shou+3;
      |               ^~~~
      |               syou
a.cc:20:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   20 |     sum += 45*shou+7;
      |               ^~~~
      |               syou
a.cc:22:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   22 |     sum += 45*shou+7;
      |               ^~~~
      |               syou
a.cc:24:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   24 |     sum += 45*shou+7;
      |               ^~~~
      |               syou
a.cc:26:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   26 |     sum += 60*shou+14;
      |               ^~~~
      |               syou
a.cc:28:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   28 |     sum += 75*shou+22;
      |               ^~~~
      |               syou
a.cc:30:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   30 |     sum += 75*shou+22;
      |               ^~~~
      |               syou
a.cc:32:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   32 |     sum += 75*shou+22;
      |               ^~~~
      |               syou
a.cc:34:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   34 |     sum += 90*shou+33;
      |               ^~~~
      |               syou
a.cc:36:15: error: 'shou' was not declared in this scope; did you mean 'syou'?
   36 |     sum += 90*shou+33;
      |               ^~~~
      |               syou
a.cc:38:16: error: 'shou' was not declared in this scope; did you mean 'syou'?
   38 |     sum += 105*shou+46;
      |                ^~~~
      |                syou
a.cc:40:16: error: 'shou' was not declared in this scope; did you mean 'syou'?
   40 |     sum += 120*shou+60;
      |                ^~~~
      |                syou