Language: C++

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <numeric>
#include <functional>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
 
#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
typedef long long ll;
 
using namespace std;
 
 
int inputValue(){
    int a;
    cin >> a;
    return a;
};
 
void inputArray(int * p, int a){
    rep(i, a){
        cin >> p[i];
    }
};
 
void inputVector(vector<int> * p, int a){
    rep(i, a){
        int input;
        cin >> input;
        p -> push_back(input);
    }
}
 
template <typename T>
void output(T a, int precision) {
    if(precision > 0){
        cout << setprecision(precision)  << a << "\n";
    }
    else{
        cout << a << "\n";
    }
}
 
int main(int argc, const char * argv[]) {
    int a[3];
    scanf("%d %d %d",&a[0],&a[1],&a[2]);
	int max=0;
  	rep(int i,3){
    	if(max < a[i]){
        	max = a[i];
        }	
    }
  
  	printf("%d\n",a[0]+a[1]+a[2] - max);
    
    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:26: error: two or more data types in declaration of 'i'
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                          ^~~
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~
a.cc:12:37: error: expected initializer before '<' token
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                     ^
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~
a.cc:12:37: error: expected ';' before '<' token
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                     ^
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~
a.cc:12:37: error: expected primary-expression before '<' token
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                     ^
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~
a.cc:12:41: error: expected ')' before ';' token
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                         ~               ^
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~
a.cc:12:43: error: expected initializer before '++' token
   12 | #define repd(i,a,b) for (int i=(a);i<(b);i++)
      |                                           ^~
a.cc:13:18: note: in expansion of macro 'repd'
   13 | #define rep(i,n) repd(i,0,n)
      |                  ^~~~
a.cc:53:9: note: in expansion of macro 'rep'
   53 |         rep(int i,3){
      |         ^~~