Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
 
static class MainClass {
  static Action yes = Yes;
  static Action no = No;
  
  public static void Main (string[] args) {
    //var temp = Console.ReadLine().Split(' ').Select(int.Parse);
    var N = Console.ReadLine().ToCharArray();
    var K = Console.ReadLine();

    for(var i = 0; i < N.Length; i++){
      N = N.Select((x, index) => {return index == 0 ? N[N.Length - 1] : N[index - 1];}).ToArray(); 
      var str = new String(N);
      if(str == K){
        yes();
        return;
      }
    }
    var ans = no;
    ans();

  }
  private static void Yes(){
    Console.WriteLine("Yes");
  }
  private static void No(){
    Console.WriteLine("No");
  }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:6:10: error: 'Action' does not name a type
    6 |   static Action yes = Yes;
      |          ^~~~~~
a.cc:7:10: error: 'Action' does not name a type
    7 |   static Action no = No;
      |          ^~~~~~
a.cc:9:9: error: expected ':' before 'static'
    9 |   public static void Main (string[] args) {
      |         ^~~~~~~
      |         :
a.cc:9:28: error: 'string' has not been declared
    9 |   public static void Main (string[] args) {
      |                            ^~~~~~
a.cc:9:37: error: expected ',' or '...' before 'args'
    9 |   public static void Main (string[] args) {
      |                                     ^~~~
a.cc:26:10: error: expected ':' before 'static'
   26 |   private static void Yes(){
      |          ^~~~~~~
      |          :
a.cc:29:10: error: expected ':' before 'static'
   29 |   private static void No(){
      |          ^~~~~~~
      |          :
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In static member function 'static void MainClass::Main(int*)':
a.cc:11:5: error: 'var' was not declared in this scope
   11 |     var N = Console.ReadLine().ToCharArray();
      |     ^~~
a.cc:12:9: error: expected ';' before 'K'
   12 |     var K = Console.ReadLine();
      |         ^
a.cc:14:13: error: expected ';' before 'i'
   14 |     for(var i = 0; i < N.Length; i++){
      |             ^
a.cc:14:20: error: 'i' was not declared in this scope
   14 |     for(var i = 0; i < N.Length; i++){
      |                    ^
a.cc:14:24: error: 'N' was not declared in this scope; did you mean 'No'?
   14 |     for(var i = 0; i < N.Length; i++){
      |                        ^
      |                        No
a.cc:15:21: error: 'x' was not declared in this scope
   15 |       N = N.Select((x, index) => {return index == 0 ? N[N.Length - 1] : N[index - 1];}).ToArray();
      |                     ^
a.cc:15:24: error: 'index' was not declared in this scope
   15 |       N = N.Select((x, index) => {return index == 0 ? N[N.Length - 1] : N[index - 1];}).ToArray();
      |                        ^~~~~
a.cc:15:32: error: expected primary-expression before '>' token
   15 |       N = N.Select((x, index) => {return index == 0 ? N[N.Length - 1] : N[index - 1];}).ToArray();
      |                                ^
a.cc:15:34: error: expected primary-expression before '{' token
   15 |       N = N.Select((x, index) => {return index == 0 ? N[N.Length - 1] : N[index - 1];}).ToArray();
      |                                  ^
a.cc:16:11: error: expected ';' before 'str'
   16 |       var str = new String(N);
      |           ^~~
a.cc:17:10: error: 'str' was not declared in this scope; did you mean 'std'?
   17 |       if(str == K){
      |          ^~~
      |          std
a.cc:17:17: error: 'K' was not declared in this scope
   17 |       if(str == K){
      |                 ^
a.cc:18:9: error: 'yes' was not declared in this scope; did you mean 'Yes'?
   18 |         yes();
      |         ^~~
      |         Yes
a.cc:22:9: error: expected ';' before 'ans'
   22 |     var ans = no;
      |         ^~~
a.cc:23:5: error: 'ans' was not declared in this scope
   23 |     ans();
      |     ^~~
a.cc: In static member function 'static void MainClass::Yes()':
a.cc:27:5: error: 'Console' was not declared in this scope
   27 |     Console.WriteLine("Yes");
      |     ^~~~~~~
a.cc: In static member function 'static void MainClass::No()':
a.cc:30:5: error: 'Console' was not declared in this scope
   30 |     Console.WriteLine("No");
      |     ^~~~~~~
a.cc: At global scope:
a.cc:5:1: error: a storage class can only be specified for objects and functions
    5 | static class MainClass {
      | ^~~~~~