Language: C++

#include<stdio.h>
#include<string.h>
#include<iostream>
using namespace std;

int main()
{
  int i,j,N;
  int* m=0;
  cin >> N;
  char* moji[N][30], tmp[30];
  int* num[N];
  for(i=0;i<N;i++){
    scanf("%s",*moji[i][]);
    scanf("%d",*num[i][]);
  }
  for(i=1;i<N;i++){
    for(j=1;j<N;j++){
      if(strcmp(*moji[j-1][],*moji[j][])>0){
        strcpy(*tmp[],*moji[j-1][]);
        for(int h=1;h<N;h++){
          strcpy(*moji[h-1][],*moji[h][]);
        }
        strcpy(*moji[N-1][],*tmp[]);
      }
      if(strcmp(*moji[j-1][],*moji[j][])==0){
        if(*num[j-1][]<*num[j][]){
          *m=*num[j-1][];
          *num[j-1][]=*num[j][];
          *num[j][]=*m;
        }
      }
    }
    for(i=0;i<N;i++){
      printf("%s%d\n",*moji[i][],*num[i][]);
    }
  }
          
      


Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: expected primary-expression before ']' token
   14 |     scanf("%s",*moji[i][]);
      |                         ^
a.cc:15:24: error: expected primary-expression before ']' token
   15 |     scanf("%d",*num[i][]);
      |                        ^
a.cc:19:28: error: expected primary-expression before ']' token
   19 |       if(strcmp(*moji[j-1][],*moji[j][])>0){
      |                            ^
a.cc:19:39: error: expected primary-expression before ']' token
   19 |       if(strcmp(*moji[j-1][],*moji[j][])>0){
      |                                       ^
a.cc:20:21: error: expected primary-expression before ']' token
   20 |         strcpy(*tmp[],*moji[j-1][]);
      |                     ^
a.cc:20:34: error: expected primary-expression before ']' token
   20 |         strcpy(*tmp[],*moji[j-1][]);
      |                                  ^
a.cc:22:29: error: expected primary-expression before ']' token
   22 |           strcpy(*moji[h-1][],*moji[h][]);
      |                             ^
a.cc:22:40: error: expected primary-expression before ']' token
   22 |           strcpy(*moji[h-1][],*moji[h][]);
      |                                        ^
a.cc:24:27: error: expected primary-expression before ']' token
   24 |         strcpy(*moji[N-1][],*tmp[]);
      |                           ^
a.cc:24:34: error: expected primary-expression before ']' token
   24 |         strcpy(*moji[N-1][],*tmp[]);
      |                                  ^
a.cc:26:28: error: expected primary-expression before ']' token
   26 |       if(strcmp(*moji[j-1][],*moji[j][])==0){
      |                            ^
a.cc:26:39: error: expected primary-expression before ']' token
   26 |       if(strcmp(*moji[j-1][],*moji[j][])==0){
      |                                       ^
a.cc:27:22: error: expected primary-expression before ']' token
   27 |         if(*num[j-1][]<*num[j][]){
      |                      ^
a.cc:27:32: error: expected primary-expression before ']' token
   27 |         if(*num[j-1][]<*num[j][]){
      |                                ^
a.cc:28:24: error: expected primary-expression before ']' token
   28 |           *m=*num[j-1][];
      |                        ^
a.cc:29:21: error: expected primary-expression before ']' token
   29 |           *num[j-1][]=*num[j][];
      |                     ^
a.cc:29:31: error: expected primary-expression before ']' token
   29 |           *num[j-1][]=*num[j][];
      |                               ^
a.cc:30:19: error: expected primary-expression before ']' token
   30 |           *num[j][]=*m;
      |                   ^
a.cc:35:32: error: expected primary-expression before ']' token
   35 |       printf("%s%d\n",*moji[i][],*num[i][]);
      |                                ^
a.cc:35:42: error: expected primary-expression before ']' token
   35 |       printf("%s%d\n",*moji[i][],*num[i][]);
      |                                          ^
a.cc:37:4: error: expected '}' at end of input
   37 |   }
      |    ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^