Language: C++

#include <iostream>

using namespace std;

void GetSize(char* topptr,int parts_count){
    
    for(int i = 0;i < parts_count;i++){
        
        cin >> topptr[i];
        
    }
    
}

void Sort(char* topptr,int parts_count){
    
    for(int i = 0;i < parts_count;i++){
        
        for(int j = 0;j < parts_count - i;j++){
        
            if(topptr[j] < topptr[j + 1]){
                
                topptr[j] = topptr[j] + topptr[j + 1];
                topptr[j + 1] = topptr[j] - topptr[j + 1];
                topptr[j] = topptr[j] - topptr[j + 1];
                
            }
        
        }
        
    }
    
}

int main(void){
    // Your code here!
    
    int parts = 0;

    cin >> parts;

    int* up[parts];
    int* middle[parts];
    int* bottom[parts];
    
    GetSize(up,parts);
    GetSize(middle,parts);
    GetSize(bottom,parts);
    
    Sort(up,parts);
    Sort(middle,parts);
    Sort(bottom,parts);
    
    int count = 0;
    
    for(int i = 0;i < parts;i++){
        
        if(up[i] < middle[0]){
            for(int j = 0;j < parts;j++){
            
                if(middle[j] < bottom[0]){
                    for(int k = 0;k < parts;k++){
                            
                            if(middle[j] < bottom[k]){
                                
                                count++;
                                
                            }else{
                                
                                break;
                                
                            }
                            
                    }
                }else{
                    
                    break;
                    
                }
            
            }
        }else{
            
            break;
            
        }
        
    }
    
    cout << count << endl;
    
    return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:13: error: cannot convert 'int**' to 'char*'
   46 |     GetSize(up,parts);
      |             ^~
      |             |
      |             int**
a.cc:5:20: note:   initializing argument 1 of 'void GetSize(char*, int)'
    5 | void GetSize(char* topptr,int parts_count){
      |              ~~~~~~^~~~~~
a.cc:47:13: error: cannot convert 'int**' to 'char*'
   47 |     GetSize(middle,parts);
      |             ^~~~~~
      |             |
      |             int**
a.cc:5:20: note:   initializing argument 1 of 'void GetSize(char*, int)'
    5 | void GetSize(char* topptr,int parts_count){
      |              ~~~~~~^~~~~~
a.cc:48:13: error: cannot convert 'int**' to 'char*'
   48 |     GetSize(bottom,parts);
      |             ^~~~~~
      |             |
      |             int**
a.cc:5:20: note:   initializing argument 1 of 'void GetSize(char*, int)'
    5 | void GetSize(char* topptr,int parts_count){
      |              ~~~~~~^~~~~~
a.cc:50:10: error: cannot convert 'int**' to 'char*'
   50 |     Sort(up,parts);
      |          ^~
      |          |
      |          int**
a.cc:15:17: note:   initializing argument 1 of 'void Sort(char*, int)'
   15 | void Sort(char* topptr,int parts_count){
      |           ~~~~~~^~~~~~
a.cc:51:10: error: cannot convert 'int**' to 'char*'
   51 |     Sort(middle,parts);
      |          ^~~~~~
      |          |
      |          int**
a.cc:15:17: note:   initializing argument 1 of 'void Sort(char*, int)'
   15 | void Sort(char* topptr,int parts_count){
      |           ~~~~~~^~~~~~
a.cc:52:10: error: cannot convert 'int**' to 'char*'
   52 |     Sort(bottom,parts);
      |          ^~~~~~
      |          |
      |          int**
a.cc:15:17: note:   initializing argument 1 of 'void Sort(char*, int)'
   15 | void Sort(char* topptr,int parts_count){
      |           ~~~~~~^~~~~~