criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define LI list<int>
#define vct vector
#define D(a) (double)(a)
#define vi vct<int>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vvi vct<vi>
#define vll vct<ll>
#define vvll vct<vll>
#define vpii vct<pii>
#define vpll vct<pll>
#define vb vct<bool>
#define vs vector<string>
#define all(a) a.begin(),a.end()
#define allr(a) a.rbegin(),a.rend()
#define mp(a,b) make_pair(a,b)
#define pb push_back
#define ff first
#define ss second
#define bg begin()
#define UNIQUE(X) (X).erase(unique(all(X)),(X).end())
#define ft cout<<"for test"<<endl;
#define read(v,a,n) for(int i=a; i<n; i++)cin>>v[i];
#define print(v) for(auto it:v)cout<<it<<' '; cout<<endl;
#define PI acos(-1.0)
#define yes cout<<"YES"<<endl
#define no cout<<"NO"<<endl
#define FIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define t_c int test,cs=1;cin>>test;while(test--)
#define rt return true
#define rf return false
///................function.....................///
#define siz(s) (int)(s.size())
#define min3(a,b,c) min(a,min(b,c))
#define max3(a,b,c) max(a,max(b,c))
#define mod 1000000007
int main()
{
    FIO;
    string s;
    cin>>s;
    int r = count(all(s),'R');
    if(r==1||r==3||r==0)
        cout<<r<<endl;
    else
    {
        if((s[0]=='R'&&s[1]=='R')||(s[1]=='R'&&s[2]=='R'))
            cout<<2<<endl;
        else cout<<1<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:2: error: expected '}' at end of input
   53 | }
      |  ^
a.cc:41:1: note: to match this '{'
   41 | {
      | ^
Language: C++

# -*- coding: utf-8 -*-

S=input()
ans=1
if S=="SSS": ans=0
if S=="RRR": ans=3
if S=="RRS" or S=="SRR": ans=2

print(ans)

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:1: error: 'S' does not name a type
    3 | S=input()
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
#define pi 3.14159265359
#define all(i) i.begin(),i.end()
using namespace std;
const long long INF=1e9+7;
const string alp="abcdefghijklmnopqrstuvwxyz"; //26
const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
//const ll MOD=998244353LL;
//const ll MOD=1777777777LL;


int main() {
  string s;
  cin>>s;
  ll ans=0;
  if(s=="RRR") ans=3;
  if(s=="SRR"||s=="RRS"||s==) ans=2;
  if(s=="RSS"||s=="SRS"||s=="SSR"||s=="RSR") ans=1;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:29: error: expected primary-expression before ')' token
   24 |   if(s=="SRR"||s=="RRS"||s==) ans=2;
      |                             ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{string s;
 cin>>s;
 int ret=-1;
 int cnt=0;
for(int i=0;i<3;i++)
{  if(s[i]=='S')
     ret=-1;
  if(s[i]=='R'&&ret==0)
      cnt++;
  else
  {cnt=1
    ret=0; 
  }
}
 cout<<cnt;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ';' before 'ret'
   15 |   {cnt=1
      |         ^
      |         ;
   16 |     ret=0;
      |     ~~~
Language: C++

#include <bits/stdc++.h>
#define sz(x) (int)x.size()
#define trav(v, x) for (auto v : x)
#define re(x, y, z) for (int x=y; x<z; ++x)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
using namespace std;
using ll = long long;
using ii = pair<int, int>;
using vi = vector<int>;


int main() {
    string s;
    cin >> s;
    int ans = 0;
    if (s[1] == 'S') {
        ans = (s[0] == 'R') || (s[2] == 'R');
    } else {

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected '}' at end of input
   19 |     } else {
      |            ~^
a.cc:19:13: error: expected '}' at end of input
a.cc:13:12: note: to match this '{'
   13 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  	string S;
  cin >> S;
  int max = 0;
  int count = 0;
  int before = 0;
  for(int i = 0; i < 3; i++) {
    if(S[i] == 'R') {
      if(before == 1) {
	      count += 1;
        if(max < count) {
			max = count;
          }
      } else {
        count = 1;
      }
      before = 1;
    } else if(S[i] == 'S') {
      before = 0;
    }
    cout << max << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

/**
 *	author:   fractal
 *	timus:    288481RF
 *	created: 08/15/20 18:01:36
**/

#include <bits/stdc++.h>
using namespace std;

#define F first
#define S second 
#define mp make_pair
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define speed_up ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define sz(x) (int)x.size()
#define szc(x) (int)strlen(x)
#define all(x) x.begin(), x.end()
#define debug cerr << "OK\n";
#define ub upper_bound
#define lb lower_bound 
 
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef set <int> si;
typedef set <ll> sll;
typedef multiset <int> msi;
typedef multiset <ll> msll;
typedef map <int, int> mi;
typedef map <ll, int> mll;
 
const int N = 1e6 + 2;
const int M = 1e5;
const int mod = 998244353;
const int inf = 2e9 + 3;
const ll INF = 1e16;

/*
	BIN POISK EBANA V ROT
	DP EBANA V ROT
	DO EBANA V ROT
*/

char s[N];

int main() {
	scanf("%s", s + 1);
	int n = szc(s + 1);
	int ret = 0, ans = 0;
	for (int i = 1; i <= n; ++i) {
		if (s[i] == 'R')
			ans++;
		else {
			ret = max(ret, ans);
			ans = 0;
		}
	}
	ret = max(ret. ans);
	printf("%d", ret);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:66:24: error: request for member 'ans' in 'ret', which is of non-class type 'int'
   66 |         ret = max(ret. ans);
      |                        ^~~
Language: C

#include "bits/stdc++.h"
using namespace std;
#define rep(i,n)for(int i=0;i<(int)(n);i++)
#define PI 3.141592653589793
//vector < vector<int>>a(0, vector<int>(0));二次元配列宣言


int main()
{
    string s;
    cin >> s;
    int i;
    int cnt = 0;
    int ma = 0;
    for (i = 0; i < 3; i++)
    {
        if (s.at(i) == 'R')
            cnt++;
        else
            cnt = 0;
        ma = max(ma, cnt);
    }
    cout << ma << endl;
    
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include "bits/stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
import java.io.*;
import java.lang.*;
public class q1{
    public static void main(String args[]) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = br.readLine();
        char ch[] = str.toCharArray();
        int r = 0;
        int max = 0;
        for(int i=0;i<ch.length;i++){
            if(ch[i]=='R'){
                r++;
            }
            else{
                max = Math.max(max,r);
                r=0;
            }
        }
        System.out.println(max);
    }
}

Compiler output:
Main.java:4: error: class q1 is public, should be declared in a file named q1.java
public class q1{
       ^
1 error
Language: C

#include<bits/stdc++.h>
using namespace std;

#pragma GCC optimize("Ofast","unroll-loops","omit-frame-pointer","inline")

const int INF = 1000000000;

#define vi vector<int>
#define ll long long int
#define vvi vector<vi>
#define pi pair<int,int>
#define vp vector<pi>
#define vvp vector<vp>
#define vl vector<ll>
#define vvl vector<vl>
#define pl pair<ll,ll>
#define vpl vector<pl>

#define sz(x) (int)x.size()
#define mp make_pair
#define pb push_back
#define fe first
#define se second
#define all(x) x.begin(),x.end()


int main()
{
    string s;
    cin >> s;
    int n = s.size();
    int cnt = 0;
    int ans = 0;
    for(int i=0;i<n;++i){
        if(s[i]=='R') cnt++;
        else{
           ans = max(ans,cnt);
           cnt = 0; 
        }
    }
    cout << ans << endl;

    return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
        ios::sync_with_stdio(0);
        cin.tie(0);
        string s;
        cin>>s;
        int c=0,ans=0;
        for(int i =0;i<3;i++)
        {
                if(s[i]=='R')
                        c++;
                else
                {
                        ans = max(ans,c);
                        c =0
                }
        }
        ans = max(ans,c);
        cout<<ans;

return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: expected ';' before '}' token
   17 |                         c =0
      |                             ^
      |                             ;
   18 |                 }
      |                 ~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < int(n); i++)
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define INF (1<<30)-1
using ll = long long;
using namespace std;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
template<class T> inline bool chmax(T &a, const T &b){ if(a<b) { a=b; return 1; } return 0; }
template<class T> inline bool chmin(T &a, const T &b){ if(b<a) { a=b; return 1; } return 0; }

int main(){
  string s; cin >> s;
  int ans = 0;
  if(s[0] == "R" && s[1] == "R" && s[2] == "R") ans = 3;
  if(s[0] == "R" && s[1] == "R" || s[1] == "R" && s[2] == "R") ans = 2;
  if(s[0] == "R" || s[1] == "R" || s[2] == "R") ans = 1;
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if(s[0] == "R" && s[1] == "R" && s[2] == "R") ans = 3;
a.cc:16:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if(s[0] == "R" && s[1] == "R" && s[2] == "R") ans = 3;
a.cc:16:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |   if(s[0] == "R" && s[1] == "R" && s[2] == "R") ans = 3;
a.cc:17:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(s[0] == "R" && s[1] == "R" || s[1] == "R" && s[2] == "R") ans = 2;
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(s[0] == "R" && s[1] == "R" || s[1] == "R" && s[2] == "R") ans = 2;
a.cc:17:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(s[0] == "R" && s[1] == "R" || s[1] == "R" && s[2] == "R") ans = 2;
a.cc:17:56: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(s[0] == "R" && s[1] == "R" || s[1] == "R" && s[2] == "R") ans = 2;
a.cc:18:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   if(s[0] == "R" || s[1] == "R" || s[2] == "R") ans = 1;
a.cc:18:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   if(s[0] == "R" || s[1] == "R" || s[2] == "R") ans = 1;
a.cc:18:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |   if(s[0] == "R" || s[1] == "R" || s[2] == "R") ans = 1;
Language: C++

#include <bits/stdc++.h> 
#define ll long long int
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL);
#define fr(i,a,b) for(long long int i=a; i<b; i++)
#define pb push_back
#define mp make_pair
using namespace std;
signed main() 
{
    fast
    ll t=0;
  string s;
  cin>>s;
  for(ll i=0;i<2;i++)  
  {
    if(s[i]=='R') t++;
    else t=0;
  }
  cout<<t<<"\n;
}

Compiler output:
a.cc:19:12: warning: missing terminating " character
   19 |   cout<<t<<"\n;
      |            ^
a.cc:19:12: error: missing terminating " character
   19 |   cout<<t<<"\n;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define pi 3.14159265358979323846264338327950L
using namespace std;

int main() {
  string S;
  cin >> S;
  if (S=="SSS") {
    cout << 0 << endl;
  }
  else if (S=="SRS" || S=="RSR" || S=="SSR" || S=="RSS") {
    cout << 1 << endl;
  }
  else if (S="RRR") {
    cout << 3 << endl;
  }
  else {
    cout << 2 << endl;
  }
}
                                  

Compiler output:
a.cc: In function 'int main()':
a.cc:29:13: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"RRR"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   29 |   else if (S="RRR") {
      |            ~^~~~~~
      |             |
      |             std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <vector>
#include <queue>
#include <iomanip>
#include <string>
#include <algorithm>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep_1 (i,j,n) for(int i=j;i<n;i++)
typedef long long ll;
typedef long l;
const ll l_INF = 1010101010101010;
const int INF = 1010101010;
const int dx[4] = {-1,0,1,0};
const int dy[4] = {0,-1,0,1};
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vi>;
using vvll = vector<vll>;
using pii = pair<int,int>;
using pll = pair<ll,ll>;

int main{
  string s; cin>>s;
  int cnt=0;
  if(s=="RRS"||s=="SRR") cout<<2<<endl;
  else if(s=="RRR") cout<<3<<endl;
  else if(s=="SSS")cout<<0<<endl;
  else cout<<1<<endl;
}


Compiler output:
a.cc:25:5: error: cannot declare '::main' to be a global variable
   25 | int main{
      |     ^~~~
a.cc:26:10: error: expected primary-expression before 's'
   26 |   string s; cin>>s;
      |          ^
a.cc:26:10: error: expected '}' before 's'
a.cc:25:9: note: to match this '{'
   25 | int main{
      |         ^
a.cc:26:13: error: 'cin' does not name a type
   26 |   string s; cin>>s;
      |             ^~~
a.cc:28:3: error: expected unqualified-id before 'if'
   28 |   if(s=="RRS"||s=="SRR") cout<<2<<endl;
      |   ^~
a.cc:29:3: error: expected unqualified-id before 'else'
   29 |   else if(s=="RRR") cout<<3<<endl;
      |   ^~~~
a.cc:30:3: error: expected unqualified-id before 'else'
   30 |   else if(s=="SSS")cout<<0<<endl;
      |   ^~~~
a.cc:31:3: error: expected unqualified-id before 'else'
   31 |   else cout<<1<<endl;
      |   ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

/*
Author: Hrujul Thumar
*/
#include <bits/stdc++.h>
#define int         long long
#define pb          push_back
#define pf          push_front
#define pii         pair<int,int>
#define vi          vector<int>
#define whilet()    int t; scanf("%d",&t); while(t--)
#define vp          vector<pair<int,int>,int>
#define pb          push_back
#define mii         map<int,int>
#define pii         pair<int,int>
#define msi         map<string,int>
#define psi         pair<string,int>
#define mpi         map<pair<int,int>,int>
#define fo(i,l,u)   for(i=l;i<u;i++)
#define rfo(i,l,u)  for(i=l;i>=u;i--)
#define ef          else if
#define MOD         1000000007
#define endl        '\n'
#define fastio       ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
#define pi          3.141592653589793238
const long long MAX_SIZE = 1000000000;
using namespace std;

signed main()
{
    fastio
    string s;
    cin>>s;
    int cnt=0;
    int ans=0;
    for(int i=0;i<s.size();i++)
    {
        if(a[i]=='R')cnt++;
        else{
            ans=max(cnt,ans);
            cnt=0;
        }
    }
    ans=max(cnt,ans);
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:12: error: 'a' was not declared in this scope
   37 |         if(a[i]=='R')cnt++;
      |            ^
Language: C++

//It doesn't matter as long as you rise to the top - Katsuki Bakugo
#include<bits/stdc++.h>
using namespace std;
     
     
#define Fast_as_duck ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define pb push_back 
#define forn(i,st,n) for(int i = st; i < n ; i++)
#define rev(i,st,n) for(int i = st; i >= n ; i--)
#define ss second
#define ff first
#define ll long long 

typedef pair <int , int> pii;

const int N = 1e5 + 10 , mod =  1000000007;

void solve(){

   
    string str; cin >> str;
    int ans = 0;
    int r = 0;
    forn(i,0,n){
        if(str[i] == 'R'){
            r++;
        }else r = 0;
        if(r > ans)ans = r;
    }


    
    cout << ans << "\n";

    
    
        


}

int main(){
    Fast_as_duck;

/*
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
*/
    int t = 1; 
    
    // cin >> t;
    

    while(t--){
        solve();
    }




    return 0;
}
      
       


Compiler output:
a.cc: In function 'void solve()':
a.cc:24:14: error: 'n' was not declared in this scope
   24 |     forn(i,0,n){
      |              ^
a.cc:8:42: note: in definition of macro 'forn'
    8 | #define forn(i,st,n) for(int i = st; i < n ; i++)
      |                                          ^
Language: C++

include <bits/stdc++.h>
using namespace std;

string S;

void Input(){
	cin>>S;
}

void Solve(){
	int maxim=0,total=0;
	for(int i=0; i<S.length(); i++){
		if(S[i]=='R')total++;
		if(S[i]=='S'){
			maxim=max(maxim,total); total=0;
		}
	}
	maxim=max(maxim,total);
	cout<<maxim<<'\n';
}

int main(){
	Input();
	Solve();
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:4:1: error: 'string' does not name a type
    4 | string S;
      | ^~~~~~
a.cc: In function 'void Input()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>S;
      |         ^~~
a.cc:7:14: error: 'S' was not declared in this scope
    7 |         cin>>S;
      |              ^
a.cc: In function 'void Solve()':
a.cc:12:24: error: 'S' was not declared in this scope
   12 |         for(int i=0; i<S.length(); i++){
      |                        ^
a.cc:15:31: error: 'max' was not declared in this scope; did you mean 'maxim'?
   15 |                         maxim=max(maxim,total); total=0;
      |                               ^~~
      |                               maxim
a.cc:18:15: error: 'max' was not declared in this scope; did you mean 'maxim'?
   18 |         maxim=max(maxim,total);
      |               ^~~
      |               maxim
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout<<maxim<<'\n';
      |         ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main() {
    #ifdef LOCAL
    freopen("in", "r", stdin);
    #endif // LOCAL
    ios::sync_with_stdio(0); cin.tie(0);
    string s;
    cin >> s;
    switch (s) {
        case "SSS": cout << 3 << endl; break;
        case "SSR":
        case "RSS": cout << 2 << endl; break;
        case "SSS": cout << 0 << endl; break;
        default: cout <<1 << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: switch quantity not an integer
   12 |     switch (s) {
      |             ^
Language: C++

/**
 * Author : Deep Raval
 * There are no two words in the English language more harmful than "good job".
 * 1729 0_0
**/
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
#include <bitset>
#include <iomanip>
#include <cassert>
#include <numeric>
using namespace std;
using ll = long long;
#define endl '\n'
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) 
{
  cerr << " " << to_string(H);
  debug_out(T...);
}
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#define FAST_IO ios::sync_with_stdio(0); std::cin.tie(0); std::cout.tie(0);
#define bp(x) __builtin_popcount(x)
#define zf(x) __builtin_clz(x)
#define zl(x) __builtin_ctz(x)
#define par(x) __bultin_parity(x)
#define all(x) (x).begin(), (x).end()
/* **************************************************************************************** */

void test_case()
{
    string s;
    cin >> s;
    int ans= 0;

    if(s == "RRR")
    {
        cout << '3' << endl;
        return;
    }

    if(s == "SSS")
    {
        cout << '0' << endl;
        return;
    }

    if(s = "RRS")
    {
        cout << '2' << endl;
        return;
    }

    if(s == "SRR")
    {
        cout << '2' << endl;
        return;
    }

    cout << '1' << endl;
	return ;
}
int main()
{
	FAST_IO
    int t = 1;
    //cin >> t;
    while(t--)
        test_case();
	return 0;
}

Compiler output:
a.cc: In function 'void test_case()':
a.cc:65:10: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"RRS"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   65 |     if(s = "RRS")
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
Language: C++

#include <boost/optional.hpp>
#include <boost/range/irange.hpp>
#include <boost/range/algorithm.hpp>
#include <boost/range/numeric.hpp>
#include <boost/bimap/bimap.hpp>
#include <boost/bimap/multiset_of.hpp>
#include <boost/multi_array.hpp>
#include <boost/integer/common_factor_rt.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/icl/interval_map.hpp>

#define REPI(i, S, N) for(int i=int(S); i<int(N); i++)
#define REP(i, N) REPI(i, 0, N)
#define REC(f, ...) (void)0; const auto f = [&](const auto f, __VA_ARGS__)
using namespace std;
using namespace boost::integer;

using ll = long long;
namespace bst = boost;
namespace icl = boost::icl;
template<typename T> class in {
    T value;
public:
    in() { cin >> value; }
    operator const T&() const { return value; }
    operator T&() { return value; }
    in& operator=(T source) { value = source; return *this; }
};
template<> class in<string> : public string {
public:
    in() { cin >> *this; }
};
template<class T> class inseq : public T {
public:
    template<typename... Arg> inseq(Arg... arg) : T(forward<Arg>(arg)...) { for (auto&& i : *this) cin >> i; }
};
template<class T> using invec = inseq<vector<T>>;

auto solve() {
  in<string> S;


  if (S == "RRR")
  return 3;
  if (S == "SSS")
  return 0;

  if (S == "RRS" || S == "SRR")
  return 2;
else return 1;
}

template<typename T> void plot(const T& func) { cout << setprecision(9) << func() << endl; }
template<> void plot<void()>(void(&func)()) { func(); }

int main() {
  plot(solve);

  return 0;
}


Compiler output:
a.cc:1:10: fatal error: boost/optional.hpp: No such file or directory
    1 | #include <boost/optional.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp> 
#include <functional>
using namespace __gnu_pbds;  
using namespace std;

typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
             tree_order_statistics_node_update> 
    new_data_set; 
    
//defines
typedef long long ll;
typedef long double ld;

ll a,b,c,n,m,k;

ll t=1;

void solve()
{
   cin>>s;
   c=0;
   for(ll i=0;i<3;i++)
   {
       if(s[i]=='R')c++;
       else if(s[i]=='S' and c>0)break;
   }
   cout<<c;
 if(t>0)cout<<"\n";
}



int32_t main()
{
#ifdef ONPC
    freopen("input.txt", "r", stdin);
#endif
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

  cin>>t;
    while(t--)
    {
        solve();
    }
  //cout<<sum;
        
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:22:9: error: 's' was not declared in this scope
   22 |    cin>>s;
      |         ^
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define mod ((int)1e9+7)
#define lim 1000000000000000007
#define lim1 18446744073709551615  //Unsigned
#define sq(a) ((a)*(a))
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define mms(v,i) memset(v,i,sizeof(v))
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define REP(i,a,b) for (int i = a; i <= b; i++)
#define REPN(i,a,b) for (int i = a; i >= b; i--)
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef pair<int,int> pi;
typedef pair<ll,ll> PL;
typedef pair<ll,int> PLI;
typedef pair<int,ll> PIL;
typedef pair<int,pair<int,int> > pii;
typedef pair<double,double> pdd;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
typedef tree<pi,null_type,less<pi>,rb_tree_tag,tree_order_statistics_node_update> indexed_set_pair;
ll power(ll a,ll b) {
   ll res=1;
   while(b){
      if(b%2==1) res=(res*a)%mod;
      a=(a*a)%mod;
      b>>=1;
   }
   return res;
}
ll gcdll(ll a,ll b) {
    if (b==0) return a;
    return gcdll(b,a%b);
}
int gcd(int a,int b) {
    if (b==0) return a;
    return gcd(b,a%b);
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

const int N = (int)2e5+5;
const int M = (int)1e3+5;
const int Q = 102;
const int logN = 19;

const double pie = acos(-1);

void solve() {
  string s;
  cin>>s;
  int cnt = 0, ans = 0;
  for(i=0;i<s.size();i++) {
    if(s[i]=='S') {
      ans = max(ans, cnt);
      cnt = 0;
    } else cnt++;
  }
  ans = max(ans, cnt);
  cout<<ans;
}

int main() {
    //freopen("./sort/b2.in","r",stdin);
    //freopen("output.txt","w",stdout);

    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int T=1;
    //cin>>T;
    REP(TC,1,T) {
        //cout<<"Case #"<<TC<<": ";
        solve();
        //cout<<"\n";
    }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:72:7: error: 'i' was not declared in this scope
   72 |   for(i=0;i<s.size();i++) {
      |       ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;

public class main {

    public static void main(String[] args) throws IOException {
        new main().solve();
    }

    private void solve() throws IOException {
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);

        char[] seq = f.readLine().toCharArray();
        int r = 0;
        int max = 0;
        for (int i = 0; i < seq.length; i++) {
            if (seq[i] == 'R') r++;
            else  r = 0;
            max = Math.max(r, max);
        }

        out.println(max);
        out.close();
    }
}


Compiler output:
Main.java:6: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main()
{
	string s;
	cin>>s;
	if(s=="RRR")
		cout<<3;
	else
		if(s=="RRS"||s++"SRR")
			cout<<2;
		else
			if(s=="SSS")
				cout<<0;
			else
				cout<<1;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   11 |                 if(s=="RRS"||s++"SRR")
      |                              ~^~
a.cc:11:33: error: expected ')' before string constant
   11 |                 if(s=="RRS"||s++"SRR")
      |                   ~             ^~~~~
      |                                 )
Language: C++

#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
using namespace std;
ll power(ll a,ll n)
{
          ll result=1;
          while(n>0)
          {
               if(n&1)
                    result=result*a;
               a=a*a;
               n=n>>1;
          }
          return result;
}
ll lcm(ll a,ll b)
{
          return ((a*b)/__gcd(a,b));
}
bool ispow2(ll n)
{
          return (ceil(log2(n))==floor(log2(n)));
}
bool isprime(ll n)
{
          if(n==1)
               return false;
          else if(n==2)
               return true;
          else
          {
               for(ll i=2;i*i<=n;++i)
               {
                    if(n%i==0)
                         return false;
               }
               return true;
          }
}

ll ncr(ll n,ll r)
{
    if(r > n - r)
          r = n - r;
    ll ans = 1;
    ll i;

    for(i = 1; i <= r; i++)
     {
        ans *= n - r + i;
        ans /= i;
    }

    return ans;
}
int main()
{
          ios_base::sync_with_stdio(0);
          cin.tie(0);

          int t=1;
          //cin>>t;
          while(t--)
          {
                    string s;
                    cin>>s;
                    int c=0;int ans=0;
                    for(int i=0;i<s.size();++i)
                    {
                         if(s[i]=='R')
                         {
                              for(int j=i;j<s.size();++j)
                              {
                                   if(s[j]=='R')
                                        c++;
                                   else
                                        break;
                              }
                              ans = max(ans,c);
                              i=j-1;
                         }
                    }
                    cout<<ans;
          }
          return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:84:33: error: 'j' was not declared in this scope
   84 |                               i=j-1;
      |                                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
#define fi first
#define se second
#define endl '\n'
#define y1 holyshit
#define all(x) x.begin(),x.end()
const int inf=0x3f3f3f3f;

int main(){
	ios_base::sync_with_stdio(0); cin.tie(0);
	string S; cin>>S;
	int curr=0,mx=0;
	for(auto i:S){
		if(i=='R') curr++;
		else{
			mx=max(mx,curr);
			curr=0;
		}
	}
	cout<<ans; 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |         cout<<ans;
      |               ^~~
      |               abs
Language: C++

#include<bits/stdc++.h>
#include<cstdio>

using namespace std;

typedef long long int ll;
 
template<class T> inline bool chmax(T& a,T b){ if(a<b){ a=b; return true;} return false; }
template<class T> inline bool chmin(T& a,T b){ if(a>b){ a=b; return true;} return false; }
 
typedef pair<int,int> pair;

int main(){
  string s; cin >>s;

  int ans=0;
  for(auto v : s){
    if(v=='R'){
      a++;
    }else if(a!=0 && v!='R'){
      break;
    }
  }

  cout << a << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: 'a' was not declared in this scope
   19 |       a++;
      |       ^
a.cc:20:14: error: 'a' was not declared in this scope
   20 |     }else if(a!=0 && v!='R'){
      |              ^
a.cc:25:11: error: 'a' was not declared in this scope
   25 |   cout << a << endl;
      |           ^
Language: C++

#include <bits/stdc++.h>                        
#define pb push_back                            
#define mp make_pair                            
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)((x).size())
#define endl "\n"
#define jonathan ios_base::sync_with_stdio(0)
#define livingston cin.tie(0)                   
using namespace std;                            
                                                
void yes() {cout << "YES" << endl;}                                               
void no() {cout << "NO" << endl;}                                                        
                                                
int dx[] = {1, 0, -1, 0, -1, -1, 1, 1};         
int dy[] = {0, 1, 0, -1, -1, 1, -1, 1}; 

const long long INF = 8e18 + 8;
const double EPS = 1e-9;
const long long MOD = 1e9 + 7;

void solve() {
    string s; cin >> s;
    int mx = 0. t = 0;;
    for (int i = 0; i < sz(s); i++) {
        if (s[i] == 'R') {
            t++;
            mx = max(mx, t);
        }
        else t = 0;
    }
    cout << t << endl;
}

int main() {
    jonathan; 
    livingston;
    bool tests = 0;
    int t = 1;
    if (tests) cin >> t;
    for (int i = 1; i <= t; i++) {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:23:17: error: expected ',' or ';' before 't'
   23 |     int mx = 0. t = 0;;
      |                 ^
a.cc:26:13: error: 't' was not declared in this scope
   26 |             t++;
      |             ^
a.cc:29:14: error: 't' was not declared in this scope
   29 |         else t = 0;
      |              ^
a.cc:31:13: error: 't' was not declared in this scope
   31 |     cout << t << endl;
      |             ^
Language: C

#include<bits/stdc++.h>

int main(){
    using namespace std;
    string S;
    cin >> S;
    unsigned long ans{0}, prev{0};
    for(unsigned long i{0}; i < 3; ++i){
        if(S[i] == 'S')prev = 0;
        else prev++;
        ans = max(ans, prev);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;

typedef unsigned long long ll;
#define mod 1000000007
#define all(x) (x).begin(),(x).end()

void solve(){
	int n;
	cin>>n;
	vector<int> vec(n);
	for(int &i:vec)
		cin>>i;

	sort(all(vec));
 
    int ans = 0;
 
    for (int i = 0; i < N; ++i) {
        for (int j = 0; j < i; ++j) {
            for (int k = 0; k < j; ++k) {
                if (vec[k] != vec[j] and vec[i] != vec[j] and
                    vec[k] + vec[j] > vec[i]) {
                    ans++;
                }
            }
        }
    }
}


int main()
{
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:25: error: 'N' was not declared in this scope
   19 |     for (int i = 0; i < N; ++i) {
      |                         ^
Language: C++

#include <iostream>
#include <unordered_map>
#include <string>
#include <vector>

using namespace std;

int main(void) {
    int n;
    cin >> n;
    vector<int> L(n);
    for (int &l : L) cin >> l;

    int count = 0;
    for (int i = 0; i < n - 2; i++) {
        for (int j = i + 1; j < n - 1; j++) {
            for (int k = j + 1; k < n; k++) {
                bool different_lengths = L[i] != L[j] && L[j] != L[k] && L[k] != L[i];
                if (!different_lengths) continue;
                vector<int> ll;
                ll.push_back(L[i]);
                ll.push_back(L[j]);
                ll.push_back(L[k]);
                sort(ll.begin(), ll.end());
                bool triangle_inequality = ll[0] + ll[1] > ll[2]; 
                if (triangle_inequality) {
                    count++;
                }
            }
        }
    }

    cout << count << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   24 |                 sort(ll.begin(), ll.end());
      |                 ^~~~
      |                 short
Language: C++

#include<bits/stdc++.h>
using namespace std; 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep1(i, n) for (int i = 1; i < (int)(n); i++)
#define length size()
#define int long long
#define ll long long
const int MOD = 1000000007;
const int MAX = 510000;

int main(){
  int n;
  cin >> n;
  vector<int> vec(n);
  rep(i,n){
  cin >> vec[i];
  }
  int sum = 0;
  for(int i=0;i<n-2;i++){
    for(int j = i+1;j<n-1;j++){
      for(int k = j+1;k<n;k++){
      int a,b,c;
        a = vec[i];
        b = vec[j];
        c = vec[k];
        if(a+b>c&&a+c>b&&c+b>a&&a!=b&&b!=c&&c!=a){
          sum++;
          //cout << a << " " << b << " " << c << endl;
        }
      }
    }
  }
  cout << sum << endl;
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
#define rreps(i, n) for(int i=((int)(n)); i>0; --i)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) ((int)(x).size())
#define pl(s) cout << (s) << "\n";
#define pls(...) {bool space = false; for(auto i : __VA_ARGS__) (cout << (space?" ":"") << i), space = true; cout << "\n";}
#define plexit(s) {cout << (s) << "\n"; exit(0);}
#define yes(s) cout << ((s)?"Yes":"No") << "\n";
#ifdef __LOCAL
#include <dump.hpp>
#define dump(...) DUMPOUT << "  " << string(#__VA_ARGS__) << ": " << "[" << to_string(__LINE__) << ":" << __FUNCTION__ << "]" << endl << "    ", dump_func(__VA_ARGS__)
#else
#define dump(...)
#endif
template<typename T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
struct IOInit { IOInit() { cin.tie(nullptr); ios::sync_with_stdio(false); dump("READY"); /*cout << unitbuf;*/} } IO_INIT;
using ll = long long; using ull = unsigned long long; using ld = long double;
template<typename T = int> using V = vector<T>; template<typename T = int> using P = pair<T, T>;
using Vi = V<int>; using Vl = V<ll>; using Vd = V<ld>; using VVi = V<Vi>; using VVl = V<Vl>; using Pi = P<int>; using Pl = P<ll>; using Pd = P<ld>;
constexpr ll MOD = 1000000007; constexpr int INF = (1 << 30) - 1; constexpr ll INFL = 1LL << 60; constexpr ld EPS = 1e-12; constexpr ld PI = 3.141592653589793238462643383279;



signed main(void) {
  int n; cin >> n;
  Vi a(n); rep(i,n) cin >> a[i];
  sort(all(a));
  int ans = 0;
  rep(i,n) {
    int A = a[i];
    for (int j = i+1; j < n; ++j) {
      int B = a[j];
      for (int k = j+1; k < n; ++k) {
        int C = a[k];
        if (A != B && B != C) if (abs(A-B) < C && C < A + B) ++ans;
      }
    }
  }
  pl(ans)
  return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

bool check(ll a, ll b, ll c) {
  return (a + b > c) && (a + c > b) && (b + c > a) && a != b && a != c && b != c && a <= b && b <= c;
}

int main() {
  ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
  int n;
  cin >> n;
  vector<ll> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  ll ans = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      if (j == i) continue;
      for (int k = 0; k < n; ++k) {
	if (k == i || k == j) continue;
	if (check(a[i], a[j], a[k])) {
	  debug(a[i], a[j], a[k]);
	  ++ans;
	}
      }
    }
  }
  cout << ans << '\n';
  return 0;
}

Compiler output:
a.cc:1:12: error: 'll' was not declared in this scope
    1 | bool check(ll a, ll b, ll c) {
      |            ^~
a.cc:1:18: error: 'll' was not declared in this scope
    1 | bool check(ll a, ll b, ll c) {
      |                  ^~
a.cc:1:24: error: 'll' was not declared in this scope
    1 | bool check(ll a, ll b, ll c) {
      |                        ^~
a.cc:1:28: error: expression list treated as compound expression in initializer [-fpermissive]
    1 | bool check(ll a, ll b, ll c) {
      |                            ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'ios_base' has not been declared
    6 |   ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
      |   ^~~~~~~~
a.cc:6:37: error: 'cin' was not declared in this scope
    6 |   ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
      |                                     ^~~
a.cc:6:45: error: 'NULL' was not declared in this scope
    6 |   ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
      |                                             ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | bool check(ll a, ll b, ll c) {
a.cc:6:52: error: 'cout' was not declared in this scope
    6 |   ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
      |                                                    ^~~~
a.cc:9:3: error: 'vector' was not declared in this scope
    9 |   vector<ll> a(n);
      |   ^~~~~~
a.cc:9:10: error: 'll' was not declared in this scope
    9 |   vector<ll> a(n);
      |          ^~
a.cc:9:14: error: 'a' was not declared in this scope
    9 |   vector<ll> a(n);
      |              ^
a.cc:13:5: error: expected ';' before 'ans'
   13 |   ll ans = 0;
      |     ^~~~
      |     ;
a.cc:19:35: error: 'check' cannot be used as a function
   19 |         if (check(a[i], a[j], a[k])) {
      |                                   ^
a.cc:20:11: error: 'debug' was not declared in this scope
   20 |           debug(a[i], a[j], a[k]);
      |           ^~~~~
a.cc:21:13: error: 'ans' was not declared in this scope
   21 |           ++ans;
      |             ^~~
a.cc:26:11: error: 'ans' was not declared in this scope
   26 |   cout << ans << '\n';
      |           ^~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
using ll=long long;

int main(){
  int N,count=0;
  cin >> N;
  vector<int> L(N);
  rep(i,N) cin >> L(i);
  
  for(int i=0; i<N-2; i++){
    for(int j=i+1;j<N-1;j++){
       for(int k=j+1;k<N;k++){
         int a=L.at(i),b=L.at(j),c=L.at(k);
         if(a+b>c&&a+c>b&&b+c>a) count++;
       }
    }
  }
  
  cout << count << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no match for call to '(std::vector<int>) (int&)'
   10 |   rep(i,N) cin >> L(i);
      |                   ~^~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
using ll=long long;

int main(){
  int N,count=0;
  cin >> N;
  vector<int> L(N);
  rep(i,N) cin >> L.at(i);
  
  for(i=0; i<N-2; i++){
    for(j=i+1;j<N-1;j++){
       for(k=j+1;k<N;k++){
         int a=L.at(i),b=L.at(j),c=L.at(k);
         if(a+b>c&&a+c>b&&b+c>a) count++;
       }
    }
  }
  
  cout << count << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0; i<N-2; i++){
      |       ^
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=i+1;j<N-1;j++){
      |         ^
a.cc:14:12: error: 'k' was not declared in this scope
   14 |        for(k=j+1;k<N;k++){
      |            ^
a.cc:16:15: error: 'b' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |               ^
a.cc:16:17: error: 'c' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
using ll=long long;

int main(){
  int N,count=0;
  cin >> N;
  vector<int> L(N);
  rep(i,N) cin >> L(i);
  
  for(i=0; i<N-2; i++){
    for(j=i+1;j<N-1;j++){
       for(k=j+1;k<N;k++){
         int a=L.at(i),b=L.at(j),c=L.at(k);
         if(a+b>c&&a+c>b&&b+c>a) count++;
       }
    }
  }
  
  cout << count << endl;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no match for call to '(std::vector<int>) (int&)'
   10 |   rep(i,N) cin >> L(i);
      |                   ~^~~
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0; i<N-2; i++){
      |       ^
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=i+1;j<N-1;j++){
      |         ^
a.cc:14:12: error: 'k' was not declared in this scope
   14 |        for(k=j+1;k<N;k++){
      |            ^
a.cc:16:15: error: 'b' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |               ^
a.cc:16:17: error: 'c' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i<(n); i++)
using namespace std;
using ll=long long;

int main(){
  int N,count=0;
  cin >> N;
  vector<int> L(N);
  rep(i,N) cin >> L(i);
  
  for(i=0; i<N-2; i++){
    for(j=i+1;j<N-1;j++){
       for(k=j+1;k<N;k++){
         int a=L.at(i),b=L.at(j),c=L.at(k);
         if(a+b>c&&a+c>b&&b+c>a) count++;
       }
    }
  }
  
  cout << count << endl;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: no match for call to '(std::vector<int>) (int&)'
   10 |   rep(i,N) cin >> L(i);
      |                   ~^~~
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0; i<N-2; i++){
      |       ^
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=i+1;j<N-1;j++){
      |         ^
a.cc:14:12: error: 'k' was not declared in this scope
   14 |        for(k=j+1;k<N;k++){
      |            ^
a.cc:16:15: error: 'b' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |               ^
a.cc:16:17: error: 'c' was not declared in this scope
   16 |          if(a+b>c&&a+c>b&&b+c>a) count++;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
ll n;
cin>>n;
ll arr[n];
for(int i=0; i<n;i++)
cin>>arr[i];
sort(arr, arr+n)
ll ans=0;
for(int i=0; i<n;i++)
for(int j=i+1; j<n;j++)
for(int k=j+1; k<n;k++)
     if(arr[k] < arr[i] + arr[j])
         ans++;
cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'long'
   10 | sort(arr, arr+n)
      |                 ^
      |                 ;
a.cc:16:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |          ans++;
      |          ^~~
      |          abs
a.cc:17:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 | cout<<ans;
      |       ^~~
      |       abs
Language: C++

#include<bits/stdc++.h>
#define long long int ll
using namespace std;
int main(){
ll n;
cin>>n;
ll arr[n];
for(int i=0; i<n;i++)
cin>>arr[i];
sort(arr, arr+n)
ll ans=0;
for(int i=0; i<n;i++)
for(int j=i+1; j<n;j++)
for(int k=j+1; k<n;k++)
     if(arr[k] < arr[i] + arr[j])
         ans++;
cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'll' was not declared in this scope
    5 | ll n;
      | ^~
a.cc:6:6: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 | cin>>n;
      |      ^
      |      yn
a.cc:7:3: error: expected ';' before 'arr'
    7 | ll arr[n];
      |   ^~~~
      |   ;
a.cc:9:6: error: 'arr' was not declared in this scope
    9 | cin>>arr[i];
      |      ^~~
a.cc:10:6: error: 'arr' was not declared in this scope
   10 | sort(arr, arr+n)
      |      ^~~
a.cc:16:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |          ans++;
      |          ^~~
      |          abs
a.cc:17:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 | cout<<ans;
      |       ^~~
      |       abs