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

#pragma gcc optimize("Ofast")
#include <bits/stdc++.h>

using namespace std;
using ll = long long;

#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ALL(V) (V).begin(),(V).end()
#define SORT(V) sort(ALL(V)) //小さい方からソート
#define REV(V) reverse(ALL(V)) //リバース
#define RSORT(V) SORT(V);REV(V) //大きい方からソート
#define NPN(V) next_permutation(ALL(V)) //順列
#define pb(n) push_back(n)
#define endl '\n'
#define Endl '\n'
#define DUMP(x)  cout << #x << " = " << (x) << endl
#define YES(n) cout << ((n) ? "YES" : "NO"  ) << endl
#define Yes(n) cout << ((n) ? "Yes" : "No"  ) << endl
#define yes(n) cout << ((n) ? "yes" : "no"  ) << endl
#define Yay(n) cout << ((n) ? "Yay!": ":(") << endl
#define RAPID cin.tie(0);ios::sync_with_stdio(false)
#define VSUM(V) accumulate(ALL(V), 0)
#define MID(a,b,c) (a) < (b) && (b) < (c)
#define MIDe(a,b,c) (a) <= (b) && (b) <= (c)
#define IN(n) cin >> n
#define IN2(a,b) cin >> a >> b
#define IN3(a,b,c) cin >> a >> b >> c 
#define IN4(a,b,c,d) cin >> a >> b >> c >> d
#define VIN(V) for(int i = 0; i < (V).size(); i++) {cin >> (V).at(i);}
#define OUT(n) cout << n << endl
#define VOUT(V) REP(i, (V).size()) {cout << (V)[i] << endl;}
#define VOUT2(V) REP(i, (V).size()) {cout << (V)[i] << " ";} cout<<endl;
#define FIX cout << fixed << setprecision(15)

// 型マクロ定義
#define int long long
#define P pair<ll,ll>
#define Vi vector<ll>
#define VVi vector<vector<ll>>
#define Vd vector<double>
#define Vb vector<bool>
#define Vs vector<string>
#define Vc vector<char>
#define M map<ll,ll>
#define S set<ll>
#define PQ priority_queue<ll>
#define PQG priority_queue<ll,V,greater<ll>
//

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

const int MOD = 1000000007;
const int INF = 1061109567;
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int gcd(int a,int b){return b != 0 ? gcd(b, a % b) : a;} //最大公約数
int lcm(int a, int b){return a * b / gcd(a, b);}
string toStrUp(string str){char diff = 'A'-'a';REP(i,str.size()) str[i] += diff;return str;}
string gCh(string str, int key){return str.substr(key,1);}

signed main() {
  RAPID;
  // デフォルト変数定義
  int n=0,m=0,a=0,b=0,c=0,d=0,x=0,y=0,z=0;
  string s="",t="";
  //

  // ここから
  IN2(x,y);
  if(x+y==15) OUT("+");
  else if(x*y==15) OUT("*");
  else OUT("x";)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:26: error: expected primary-expression before '<<' token
   31 | #define OUT(n) cout << n << endl
      |                          ^~
a.cc:75:8: note: in expansion of macro 'OUT'
   75 |   else OUT("x";)
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int> >;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define irep(i, n) for(int i = n-1; i >= (int)0; i--)
#define erep(i,container) for (auto i : container)
#define reprep(i,j,h,w) rep(i,h)rep(j,w)
#define rrep(i,m,n) for(int i = m; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define aall(x,n) (x).begin(),(x).begin()+(n)
#define VEC(type,name,n) std::vector<type> name(n);rep(i,n)std::cin >> name[i];
#define pb push_back
#define pf push_front
#define lb lower_bound
#define ub upper_bound
#define fi first
#define se second
#define mp make_pair
#define sum accumulate
#define keta fixed<<setprecision
#define vvector(name,typ,m,n,a)vector<vector<typ> > name(m,vector<typ> (n,a))
#define vvvector(name,t,l,m,n,a) vector<vector<vector<t> > > name(l, vector<vector<t> >(m, vector<t>(n,a)));
#define vvvvector(name,t,k,l,m,n,a) vector<vector<vector<vector<t> > > > name(k,vector<vector<vector<t> > >(l, vector<vector<t> >(m, vector<t>(n,a)) ));
typedef long long ll;
const int INF = 2000000000;
const ll INF64 = 1000000000000000ll;
const ll MOD = 1000000007LL;
int main(){
    std::cin >> a>>b;
    if(a*b==15)std::cout << '*' << std::endl;
    if(a+b==15)std::cout << '+' << std::endl;
    else std::cout << 'x' << std::endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: 'a' was not declared in this scope
   29 |     std::cin >> a>>b;
      |                 ^
a.cc:29:20: error: 'b' was not declared in this scope; did you mean 'ub'?
   29 |     std::cin >> a>>b;
      |                    ^
      |                    ub
Language: C++

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

int main() {
	int a,b;
	cin >> a >> b;
	char k = 'x';
	if(a + b == 15)
	{
		k = '+';
	}
	else if(a * b = 15)
	{
		k = '*';
	}
	cout << k << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: lvalue required as left operand of assignment
   12 |         else if(a * b = 15)
      |                 ~~^~~
Language: C++

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

int main(){
  int i,j,cnt=0;
  int a,b;
  cin>>a>>b;
  if(a+b==15)cout<<'+';
  else if(a*b==15)cout<<'*';
  else cout<<'x';
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a>>b;
      |   ^~~
a.cc:9:14: error: 'cout' was not declared in this scope
    9 |   if(a+b==15)cout<<'+';
      |              ^~~~
a.cc:10:19: error: 'cout' was not declared in this scope
   10 |   else if(a*b==15)cout<<'*';
      |                   ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope
   11 |   else cout<<'x';
      |        ^~~~
Language: C++

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

int main(){
  
  int a;
  int b;
  
  cin >> a >> b;
  
  if(a + b == 15){
    cout << '+' << endl;
  }
  else if(a * b = 15){
    cout << '*' << endl;
  }
  else{
    cout << 'x' << endl;
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: lvalue required as left operand of assignment
   14 |   else if(a * b = 15){
      |           ~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int (i) = 0; (i) < (n); ++(i))
#define rrep(i,n) for(int (i) = (n) - 1; (i) >= 0; --(i)) //Reversi rep
#define nfor(i,a,b) for(int (i) = (a); (i) < (b); ++(i)) //Natural for
#define rfor(i,a,b) for(int (i) = (b); (i) >= (a); --(i)) //Reversi for
#define ll long long
#define mod (1000000007)
#define YES cout << "YES" << endl;
#define Yes cout << "Yes" << endl;
#define NO cout << "NO" << endl;
#define No cout << "No" << endl;

int asc(const void *a, const void *b) {
    return *(int *)a - *(int *)b;
}

int desc(const void *a, const void *b) {
    return *(int *)b - *(int *)a;
}

int main()
{
    int a,b;
    cin >> a >> b;
    if (a + b == 15) {
        cout << "+" << endl;
    }else if (a * b == 15){
        cout << "*" << endl;
    }else{
        cout "x" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:13: error: expected ';' before string constant
   31 |         cout "x" << endl;
      |             ^~~~
      |             ;
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  if(a+b==15){
    cout << '+' << endl;
  }
  else if(a*b == 15){
    cout < '*' << endl;
  }
  else {
    cout << 'x' << endl;
  }
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: invalid operands of types 'char' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout < '*' << endl;
      |            ~~~~^~~~~~~
Language: C++

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

int main() {
  int a,b;
  cin >> a >> b;
  if(a+b==15){
    cout << '+' << endl;
  }
  else if(a*b == 15){
    cout < '*' << endl;
  }
  else {
    cout << 'x' << endl;
  }
  
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define ALL(x) x.begin(),x.end()
#define rep(i,n) for(int i=0;i<n;i++)
#define debug(v) cout<<#v<<":";for(auto x:v){cout<<x<<' ';}cout<<endl; 
#define INF 1000000000
#define mod 1000000007
typedef long long ll;
const ll LINF = 1001002003004005006ll;
int dx[]={1,0,-1,0};
int dy[]={0,1,0,-1};
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }


int main(){
    int a,b;cin>>a>>b;
    if(a*b==15) cout<<'*'<<endl;
    else if(a+b==15) cout<<'+'<<endl;
    else cout<<x<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'x' was not declared in this scope
   21 |     else cout<<x<<endl;
      |                ^
Language: C++

include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define uli unsigned long long int
#define INF 999999999
#define rep(i,m,n) for(int i = m;i < n;i++)
#define pb(n) push_back(n)
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define NeOut(S) cout << S
#define HpOut(S) cout << setprecision(20) << S << endl;
#define Vecpr vector<pair<lli,lli>>
#define mod 1000000007;
bool is_prime(lli x) {
  for(lli i = 2; i * i <= x; i++) {
    if(x % i == 0) return false;
  }
  return true;
}
int main() {
  lli A,B,C=0,D=0,E=0,F=0,G=0,H=0,N,M;
  cin >> A >> B;
  if(A*B==15)Out('*');
  else if(A+B==15)Out('+');
  else Out('x');
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:23:3: error: 'cin' was not declared in this scope
   23 |   cin >> A >> B;
      |   ^~~
a.cc:10:16: error: 'cout' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                ^~~~
a.cc:24:14: note: in expansion of macro 'Out'
   24 |   if(A*B==15)Out('*');
      |              ^~~
a.cc:10:29: error: 'endl' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                             ^~~~
a.cc:24:14: note: in expansion of macro 'Out'
   24 |   if(A*B==15)Out('*');
      |              ^~~
a.cc:10:16: error: 'cout' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                ^~~~
a.cc:25:19: note: in expansion of macro 'Out'
   25 |   else if(A+B==15)Out('+');
      |                   ^~~
a.cc:10:29: error: 'endl' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                             ^~~~
a.cc:25:19: note: in expansion of macro 'Out'
   25 |   else if(A+B==15)Out('+');
      |                   ^~~
a.cc:10:16: error: 'cout' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                ^~~~
a.cc:26:8: note: in expansion of macro 'Out'
   26 |   else Out('x');
      |        ^~~
a.cc:10:29: error: 'endl' was not declared in this scope
   10 | #define Out(S) cout << S << endl
      |                             ^~~~
a.cc:26:8: note: in expansion of macro 'Out'
   26 |   else Out('x');
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a, b;
  cin >> a >> b;
  cout << (a + b = 15 ? '+' : a * b = 15 ? '*' : 'x');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:33: error: lvalue required as left operand of assignment
    6 |   cout << (a + b = 15 ? '+' : a * b = 15 ? '*' : 'x');
      |                               ~~^~~
Language: C++

#include <iostream>
int main(){
int a,b;cin>>a>>b;
string ans;
if(a+b==15)ans="+";
else if(a*b==15)ans="*";
else ans="x";
cout<<ans<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 | int a,b;cin>>a>>b;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string ans;
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 | if(a+b==15)ans="+";
      |            ^~~
      |            abs
a.cc:6:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 | else if(a*b==15)ans="*";
      |                 ^~~
      |                 abs
a.cc:7:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 | else ans="x";
      |      ^~~
      |      abs
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout<<ans<<endl;}
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 | cout<<ans<<endl;}
      |       ^~~
      |       abs
a.cc:8:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout<<ans<<endl;}
      |            ^~~~
      |            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
int main(){
int a,b;cin>>a>>b;
string ans;
if(a+b=15)ans="+";
else if(a*b==15)ans="*";
else ans="x";
cout<<ans<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 | int a,b;cin>>a>>b;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string ans;
      | ^~~~~~
a.cc:4:1: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:5: error: lvalue required as left operand of assignment
    5 | if(a+b=15)ans="+";
      |    ~^~
a.cc:5:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    5 | if(a+b=15)ans="+";
      |           ^~~
      |           abs
a.cc:6:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
    6 | else if(a*b==15)ans="*";
      |                 ^~~
      |                 abs
a.cc:7:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 | else ans="x";
      |      ^~~
      |      abs
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout<<ans<<endl;}
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 | cout<<ans<<endl;}
      |       ^~~
      |       abs
a.cc:8:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout<<ans<<endl;}
      |            ^~~~
      |            std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

include <iostream>
int main(){
int a,b;cin>>a>>b;
string ans;
if(a+b=15)ans="+";
else if(a*b==15)ans="*";
else ans="x";
cout<<ans<<endl;}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
Language: C++

// #include <bits/stdc++.h>
#include<climits>
#include<cmath>
#include<cstdio>
#include<deque>
#include<map>
#include<set>
#include<vector>
#include<iostream>
#include<sstream>
#include<algorithm>
#include<numeric>
#include<string>
#include<tuple>
using namespace std;
// #include <boost/multiprecision/cpp_int.hpp>
// using namespace boost::multiprecision;
#define BEGIN ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
#define END return EXIT_SUCCESS
#define rep(I,N) for(auto I=0;I<(N);++I)
#define up(I,A,B) for(auto I=(A);I<=(B);++I)
#define dw(I,A,B) for(auto I=(A);I>=(B);--I)
#define all(C) (C).begin(),(C).end()
#define rall(C) (C).rbegin(),(C).rend()
#define ft first
#define sd second
#define mp make_pair
#define mt make_tuple
#define pf push_front
#define pb push_back
#define pt pop_front
#define pk pop_back
#define lb lower_bound
#define ub upper_bound
#define rs resize
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;}
template<class T>inline void                                      in(T &p){cin>>p;}
template<class T1,class T2>inline void                            in(T1 &p1,T2 &p2){cin>>p1>>p2;}
template<class T1,class T2,class T3>inline void                   in(T1 &p1,T2 &p2,T3 &p3){cin>>p1>>p2>>p3;}
template<class T1,class T2,class T3,class T4>inline void          in(T1 &p1,T2 &p2,T3 &p3,T4 &p4){cin>>p1>>p2>>p3>>p4;}
template<class T1,class T2,class T3,class T4,class T5>inline void in(T1 &p1,T2 &p2,T3 &p3,T4 &p4,T5 &p5){cin>>p1>>p2>>p3>>p4>>p5;}
template<class T>inline void                             out(T p){cout<<p<<endl;}
template<class T1,class T2>inline void                   out(T1 p1,T2 p2){cout<<p1<<" "<<p2<<endl;}
template<class T1,class T2,class T3>inline void          out(T1 p1,T2 p2,T3 p3){cout<<p1<<" "<<p2<<" "<<p3<<endl;}
template<class T1,class T2,class T3,class T4>inline void out(T1 p1,T2 p2,T3 p3,T4 p4){cout<<p1<<" "<<p2<<" "<<p3<<" "<<p4<<endl;}
long a,b;
inline void solve(void){
  in(a,b);
  if(a*b==15)out("*");
  else if(a+b=15)out("+");
  else out("x");
}
int main(int argc,char**argv){
  BEGIN;
  solve();
  END;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:51:12: error: lvalue required as left operand of assignment
   51 |   else if(a+b=15)out("+");
      |           ~^~
Language: C++

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

int main(){
int A,B;
  cin>>A>>B;
  string ans;
  if(A+B==15) ans='+';
  else if(A*B=15) ans='*';
  else ans='x';
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |   else if(A*B=15) ans='*';
      |           ~^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long mod = pow(10, 9) + 7;
const long long INF = 1LL << 60;
template <class T> bool chmin(T& a, T b){if (a > b) {a = b; return true;} return false;}
template <class T> bool chmax(T& a, T b){if (a < b) {a = b; return true;} return false;}
int divCeil(int A, int B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, int B) {return (A + (B - 1)) / B;}
long long divCeil(int A, long long B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, long long B) {return (A + (B - 1)) / B;}

int main()
{
  int a, b;
  cin >> a >> b;
  
  char ans = "x";
  if (a + b == 15) ans = "+";
  else if (a * b == 15) ans = "*";
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   17 |   char ans = "x";
      |              ^~~
      |              |
      |              const char*
a.cc:18:26: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |   if (a + b == 15) ans = "+";
      |                          ^~~
      |                          |
      |                          const char*
a.cc:19:31: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   19 |   else if (a * b == 15) ans = "*";
      |                               ^~~
      |                               |
      |                               const char*
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>
#include<vector>
#include<iomanip>
using namespace std;

int main(void)
{
    int a,b;
    cin >> a >> b;
    if(a + b == 15){cout << '+' << endl;}
    else if(a * b == 15){cout << '*' << endl;}
    else{cout << 'x' << endl:}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected ';' before ':' token
   15 |     else{cout << 'x' << endl:}
      |                             ^
      |                             ;
Language: C++

a, b = [ int(x) for x in input().split() ]

if a + b == 15:
    ans = "+"
elif a * b == 15:
    ans = "*"
else:
    ans = "x"

print(ans)


Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b = [ int(x) for x in input().split() ]
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<vector>
#include<set>
#include<cctype>
#define ld long double
#define ll long long int
#define ull unsigned long long int
using namespace std;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const long long INF=1LL<<60;


int main(void){
	ios::sync_with_stdio(false); cin.tie(0);
	
	int t,a,b,c,d;
	cin>>a>>b;
	if(a+b==15)cout<<"+"<<endl;
	else if(a*b==15)cout<<"*"<<endl;
	wlse cout<<"x"<<endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'wlse' was not declared in this scope
   25 |         wlse cout<<"x"<<endl;
      |         ^~~~
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a=scan.nextInt();
		int b=scan.nextInt();
		if(a+b==15) {
			System.out.println("+");
		}
		else if(a*b==15){
			System.out.println("*");
		}
		else {
			System.out.println(x);
		}
		}
}

Compiler output:
Main.java:14: error: cannot find symbol
			System.out.println(x);
			                   ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

# include <stdio.h>
#include <stdlib.h>
void main() {
	int a,b;
	scanf("%d %d",&a , &b);
	if(a + b == 15)
	printf("+");
	else if(a * b == 15)
		printf("*");
	else printf("x");
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main() {
      | ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	int a,b;
	scanf("%d%d",&a,&b);
	if(a+b==15)printf('+');
	if(a*b==15)printf('*');
	else printf('x');
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |         if(a+b==15)printf('+');
      |                           ^~~
      |                           |
      |                           char
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:27: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    8 |         if(a*b==15)printf('*');
      |                           ^~~
      |                           |
      |                           char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:9:21: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    9 |         else printf('x');
      |                     ^~~
      |                     |
      |                     char
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int n,m,ans,cnt,a[1005],b[1005];
string s;
int main()
{
	cin>>n>>m;
	if(n+m==15)
	cout<<"+";
	f(n*m==15)
	cout<<"*";
    return 0;
	} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'f' was not declared in this scope
   10 |         f(n*m==15)
      |         ^
Language: C++

#include <iostream >
#include <algorithm >
using namespace std;
int main() {
int a,b; cin >> a >>b;
if(a+b==15)
{
cout<< "+"<<endl;
}
else if(a*b==15)
{
cout<<"*"<<endl}
else
{
cout<<"x"<<endl;
}
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        String ans = "x";
        if(a*b==15) ans = "*";
        else if(a+b==15) ans = "+";
        System.out.println(ans);
    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a=0,b=0;
  
  cin>>a>>b;
  
  if(a+b==15){
    cout<<"+"<<endl;
  }else if(a*b==15){
    cout<<"*<<endl;
  }else{
    cout<<"x"<<endl;
  }
  
  
}

Compiler output:
a.cc:11:11: warning: missing terminating " character
   11 |     cout<<"*<<endl;
      |           ^
a.cc:11:11: error: missing terminating " character
   11 |     cout<<"*<<endl;
      |           ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before '}' token
   12 |   }else{
      |   ^
Language: C++

#include <iostream>

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  if (a + b == 15) cout << "+" << endl;
  else (a * b == 15) cout << "*" << endl;
  else cout << "x" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before 'cout'
    9 |   else (a * b == 15) cout << "*" << endl;
      |                     ^~~~~
      |                     ;
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else cout << "x" << endl;
      |   ^~~~
Language: C++

#include<stdio.h>

int main(void)
{

	int a,b;
	
	scanf("%d %d",&a,&b);
	
	if(a*b==15)
	{
		printf("*");
	}
	else if(a+b==15)
	{
		printf("+")
	}
	{
		printf("x")
	}
	
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |                 printf("+")
      |                            ^
      |                            ;
   17 |         }
      |         ~                   
a.cc:19:28: error: expected ';' before '}' token
   19 |                 printf("x")
      |                            ^
      |                            ;
   20 |         }
      |         ~
Language: C++

#include<stdio.h>

int main(void)
{

	int a,b;
	
	scanf("%d %d",a,b);
	
	if(a*b==15)
	{
		printf("*");
	}
	else if(a+b==15)
	{
		printf("+")
	}
	{
		printf("x")
	}
	
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:28: error: expected ';' before '}' token
   16 |                 printf("+")
      |                            ^
      |                            ;
   17 |         }
      |         ~                   
a.cc:19:28: error: expected ';' before '}' token
   19 |                 printf("x")
      |                            ^
      |                            ;
   20 |         }
      |         ~
Language: C

#include<iostream>
using namespace std;
int main(void)
{
	int a,b;
	cin >> a >> b;
	if (a + b == 15)cout << "+"<<endl;
	else if (a*b == 15)cout << "*" << endl;
	else { cout << "x" << endl; }
}

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

#include<bit/stdc++.h>
using namespace std;
int main(){
        int a,b;
        cin>>a>>b;
        if(a+b == 15)cout<<"+";
        else if(a*b == 15)cout<<'*';
        else cout<<"x";
        return 0;
}


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

#include<stdio.h>
int main(){
        int a,b;
        scanf("%d %d",&a,&b);
        if(a+b == 15)putcahr('+');
        else if(a*b == 15)putchar('*');
        else putchar('x');
        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'putcahr' was not declared in this scope; did you mean 'putchar'?
    5 |         if(a+b == 15)putcahr('+');
      |                      ^~~~~~~
      |                      putchar
Language: C++

        #include <stdio.h>
        int main(){
        int a,b,c;
        c = 15;
        if(a+b == c)putchar('+');
        else if(a*b == c)putchar('*');
        else putchar("x");
        return 0;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |         else putchar("x");
      |                      ^~~
      |                      |
      |                      const char*
In file included from a.cc:1:
/usr/include/stdio.h:618:25: note:   initializing argument 1 of 'int putchar(int)'
  618 | extern int putchar (int __c);
      |                     ~~~~^~~
Language: C++

#include <stdio.h>
int main(){
int a,b,c;
c = 15;
if(a+b == c)printf("+"\n);
else if(a*b == c)printf("*"\n);
else printf("X"\n);
return 0;
}

Compiler output:
a.cc:5:23: error: stray '\' in program
    5 | if(a+b == c)printf("+"\n);
      |                       ^
a.cc:6:28: error: stray '\' in program
    6 | else if(a*b == c)printf("*"\n);
      |                            ^
a.cc:7:16: error: stray '\' in program
    7 | else printf("X"\n);
      |                ^
a.cc: In function 'int main()':
a.cc:5:23: error: expected ')' before 'n'
    5 | if(a+b == c)printf("+"\n);
      |                   ~   ^~
      |                       )
a.cc:6:28: error: expected ')' before 'n'
    6 | else if(a*b == c)printf("*"\n);
      |                        ~   ^~
      |                            )
a.cc:7:16: error: expected ')' before 'n'
    7 | else printf("X"\n);
      |            ~   ^~
      |                )
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
        int a,b;
        while(cin>>a>>b){
                if(a+b == 15)cout<<'+'<<endl;
                else if(a*b == 15)cout<<'*'endl;
                else cout<<'X'<<endl;
        }

        return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: unable to find character literal operator 'operator""endl' with 'char' argument
    9 |                 else if(a*b == 15)cout<<'*'endl;
      |                                         ^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define inf 1e10
using namespace std;
​
//辺。つながっている頂点と辺の重み
struct edge {
  long long req;
  long long v;
};
//入力等々
long long n, m, u, p, s, maxn = inf, minn = inf, uniquen = -1;
bool nothing = 0;
//メモ。元と同じ値を取っていたらアウトなのでnothingを1に。偶奇違うパターンの時は答えが一意に決まる。
long long memo[2][100005] = {0};
//辺のデータリスト
vector<edge> data[100005];
//再帰。偶奇、現在の地点、一個前の頂点、一個前の合計値
void solve(bool eo, long long now, long long bfreq, long long bfv);
​
int main() {
  long long i, j;
  edge dummy;
  cin >> n >> m;
  for(j = 0; j < 2; ++j)
    for(i = 1; i <= n; ++i) memo[j][i] = inf;
  for(i = 0; i < m; ++i) {
    cin >> u >> p >> s;
    dummy.req = u;
    dummy.v = s;
    data[p].push_back(dummy);
    dummy.req = p;
    data[u].push_back(dummy);
  }
  // cout << endl;
  solve(1, 1, -1, 0);
  // cout << maxn << " " << minn << endl;
  if(nothing || (maxn == inf && minn == inf) || (maxn - minn - 1 < 0)) {
    maxn = 1;
    minn = 0;
  }
  else if(uniquen >= 0) {
    maxn = 2;
    minn = 0;
  }
  if(minn<0)minn=0;
  // cout << nothing;
  cout << maxn - minn -1 << endl;
  return 0;
}
​
void solve(bool eo, long long now, long long bfreq, long long bfv) {
  if(nothing) return;
  long long i, nextv;
  //今いる頂点につながっているすべての辺を通り別の頂点に行く。
  for(i = 0; i < data[now].size(); ++i) {
    //一個前の頂点に戻るか？
    if(data[now][i].req == bfreq) continue;
    //次の頂点の条件の計算
    nextv = bfv;
    if(eo)
      nextv += data[now][i].v;
    else
      nextv -= data[now][i].v;
    //ある頂点で条件が重複しありえないパターンになっていないか？辺の重みがあり得ない値になっていないか？
    if((memo[eo][data[now][i].req] != inf && memo[eo][data[now][i].req] != nextv) ||
       data[now][i].v > 2 * n) {
      // cout << memo[eo][data[now][i].req] << " " << now << i;
      nothing = 1;
      return;
    }
    //すでに通ってたら中断して次の辺へ
    else if(memo[eo][data[now][i].req] == nextv)
      continue;
    memo[eo][data[now][i].req] = nextv;
    //頂点に偶奇両方のデータが存在するとき、その和の半分が唯一の答えとなる。
    if(memo[!eo][data[now][i].req] != inf) {
      long long test = memo[eo][data[now][i].req] + memo[!eo][data[now][i].req];
      if(test < 0 || test % 2 != 0 || (uniquen != -1 && uniquen != test / 2)) {
        nothing = 1;
        // cout << test << " " << uniquen <<endl;
        return;
      }
      uniquen = test/2;
    }
    //minn,maxnの更新。できるだけ条件を厳しくする。
    if (eo && maxn > nextv)maxn = nextv;
      // cout << "max" << nextv << " " << now << " " << i << endl;
    if (!eo && minn > nextv)minn = nextv;
    // cout << eo << " " << now << " " << data[now][i].req << " " << nextv <<
    // endl;
    solve(!eo, data[now][i].req, now, nextv);
  }
}


Compiler output:
a.cc:4:1: error: '\U0000200b' does not name a type
    4 | ​
      |  
a.cc:16:8: error: 'edge' was not declared in this scope
   16 | vector<edge> data[100005];
      |        ^~~~
a.cc:16:12: error: template argument 1 is invalid
   16 | vector<edge> data[100005];
      |            ^
a.cc:16:12: error: template argument 2 is invalid
a.cc:19:1: error: '\U0000200b' does not name a type
   19 | ​
      |  
a.cc:50:1: error: '\U0000200b' does not name a type
   50 | ​
      |
Language: Java

import java.util.Scanner;

public class Main {
	  public static void main(String args[]) {
		    Scanner scanner = new Scanner(System.in);


		    String str1 = scanner.next();
            String str2 = scanner.next();

            int A = Integer.parseInt(str1);
            int B = Integer.parseInt(str2);

           if(A + B == 15)
           {
        	   System.out.println("+");
           }
           else if(A * B == 15)
           {
        	   System.out.println("*"));
           }
           else 
           {
        	   System.out.println("x");
           }
        	scanner.close();}
		  }

Compiler output:
Main.java:20: error: ';' expected
        	   System.out.println("*"));
        	                          ^
1 error
Language: C++

#include<bits/stdc++.h>
#define endl el
#define for(int i=0;i<k;i++) F(k)
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(a+b==15){
		cout<<"+"<<el;
		return 0;
	}
	if(a*b==15){
		cout<<"*"<<el;
		return 0;
	}
	cout<<"x"<<el;
	return 0;
}

Compiler output:
a.cc:3:17: error: expected ',' or ')', found "i"
    3 | #define for(int i=0;i<k;i++) F(k)
      |                 ^
a.cc: In function 'int main()':
a.cc:9:28: error: 'el' was not declared in this scope
    9 |                 cout<<"+"<<el;
      |                            ^~
a.cc:13:28: error: 'el' was not declared in this scope
   13 |                 cout<<"*"<<el;
      |                            ^~
a.cc:16:20: error: 'el' was not declared in this scope
   16 |         cout<<"x"<<el;
      |                    ^~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#define MAX 5
 
void
thread_1 () {
        for (int i = 0; i < MAX; i++) {
                std::cout << __PRETTY_FUNCTION__ << std::endl;
                boost::this_thread::sleep(boost::posix_time::milliseconds(100));
        }
}
void
thread_2 () {
        for (int i = 0; i < MAX; i++) {
                std::cout << __PRETTY_FUNCTION__ << std::endl;
                boost::this_thread::sleep(boost::posix_time::milliseconds(100));
        }
}
 
int
main(int argc, char const* argv[])
{
        boost::thread th1(thread_1);
        boost::thread th2(thread_2);
 
        th1.join ();
        th2.join ();
 
        return 0;
}

Compiler output:
a.cc: In function 'void thread_1()':
a.cc:9:17: error: 'boost' has not been declared
    9 |                 boost::this_thread::sleep(boost::posix_time::milliseconds(100));
      |                 ^~~~~
a.cc:9:43: error: 'boost' has not been declared
    9 |                 boost::this_thread::sleep(boost::posix_time::milliseconds(100));
      |                                           ^~~~~
a.cc: In function 'void thread_2()':
a.cc:16:17: error: 'boost' has not been declared
   16 |                 boost::this_thread::sleep(boost::posix_time::milliseconds(100));
      |                 ^~~~~
a.cc:16:43: error: 'boost' has not been declared
   16 |                 boost::this_thread::sleep(boost::posix_time::milliseconds(100));
      |                                           ^~~~~
a.cc: In function 'int main(int, const char**)':
a.cc:23:9: error: 'boost' has not been declared
   23 |         boost::thread th1(thread_1);
      |         ^~~~~
a.cc:24:9: error: 'boost' has not been declared
   24 |         boost::thread th2(thread_2);
      |         ^~~~~
a.cc:26:9: error: 'th1' was not declared in this scope
   26 |         th1.join ();
      |         ^~~
a.cc:27:9: error: 'th2' was not declared in this scope
   27 |         th2.join ();
      |         ^~~
Language: C++

#include <boost/thread.hpp>
#include <iostream>
#define MAX 5
 
void
thread_1 () {
        for (int i = 0; i < MAX; i++) {
                std::cout << __PRETTY_FUNCTION__ << std::endl;
                boost::this_thread::sleep(boost::posix_time::milliseconds(100));
        }
}
void
thread_2 () {
        for (int i = 0; i < MAX; i++) {
                std::cout << __PRETTY_FUNCTION__ << std::endl;
                boost::this_thread::sleep(boost::posix_time::milliseconds(100));
        }
}
 
int
main(int argc, char const* argv[])
{
        boost::thread th1(thread_1);
        boost::thread th2(thread_2);
 
        th1.join ();
        th2.join ();
 
        return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
    int a,b;
    while(cin >> a >> b) {
        if(a * b == 15) {
            printf("*\n");
//            printf("%d×%d=15.\n",a,b);
        } else if(a + b == 15) {

            printf("+\n");
//            printf("%d+%d=15.\n",a,b);
        } else {
            printf("x\n");
//            printf("%d+%d=%d and %d×%d=%d, neither of which is 15.\n",
                   a,b,a + b,a ,b,a * b);
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: expected ';' before ')' token
   16 |                    a,b,a + b,a ,b,a * b);
      |                                        ^
      |                                        ;
Language: C++

#include<bits/stdc++.h>
int main(){double n,m,d;cin>>n>>m>>d;printf("%.6lf\n",2*(m-1)*(n-d)/(n*n));return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:25: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    2 | int main(){double n,m,d;cin>>n>>m>>d;printf("%.6lf\n",2*(m-1)*(n-d)/(n*n));return 0;}
      |                         ^~~
      |                         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>
#include<string.h>
using namespace std;
int main(){
	string str;
	int i;
	cin>>str>>i;
	for (int u=0;u<iu++){
		if ((u+1)%i==0) cout<<str[u];
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'iu' was not declared in this scope; did you mean 'u'?
    8 |         for (int u=0;u<iu++){
      |                        ^~
      |                        u
a.cc:8:28: error: expected ';' before ')' token
    8 |         for (int u=0;u<iu++){
      |                            ^
      |                            ;
Language: C++

#include <iostream>
#include<string.h>
using namespace std;
int main(){
	stribg str;
	int i;
	cin>>str>>i;
	for (int u=0;u<iu++){
		if ((u+1)%i==0) cout<<str[u];
	}
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'stribg' was not declared in this scope
    5 |         stribg str;
      |         ^~~~~~
a.cc:7:14: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |         cin>>str>>i;
      |              ^~~
      |              std
a.cc:8:24: error: 'iu' was not declared in this scope; did you mean 'u'?
    8 |         for (int u=0;u<iu++){
      |                        ^~
      |                        u
a.cc:8:28: error: expected ';' before ')' token
    8 |         for (int u=0;u<iu++){
      |                            ^
      |                            ;
Language: C++

#include <iostream>
using namespace std;
int main(){
	int j,k;
	cin>>j>>k;
	if (j*k==15) cout<<'*'<<endl;
	eles if (j+k==15) cout<<'+'<<endl;
	else cout<<'x'<<endl;
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'eles' was not declared in this scope
    7 |         eles if (j+k==15) cout<<'+'<<endl;
      |         ^~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<'x'<<endl;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int j,k;
	cin>>j>>k;
	if (j*k==15) cout<<"*"<<endl;
	eles if (j+k==15) cout<<"+"<<endl;
	else cout<<"x"<<endl;
	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'eles' was not declared in this scope
    7 |         eles if (j+k==15) cout<<"+"<<endl;
      |         ^~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"x"<<endl;
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int j,k;
	cin>>j>>k;
	if (j*k==15) cout<<"*\n";
	eles if (j+k==15) cout<<"+\n";
	else cout<<"x\n";
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'eles' was not declared in this scope
    7 |         eles if (j+k==15) cout<<"+\n";
      |         ^~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<"x\n";
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int j,k;
	cin>>j>>k;
	if (j*k==15) cout<<"*\n";
	eles if (j+k==15) cout<<"+\n";
	else cout<<'x\n';
	return 0;

}

Compiler output:
a.cc:8:20: warning: multi-character character constant [-Wmultichar]
    8 |         else cout<<'x\n';
      |                    ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'eles' was not declared in this scope
    7 |         eles if (j+k==15) cout<<"+\n";
      |         ^~~~
a.cc:8:9: error: 'else' without a previous 'if'
    8 |         else cout<<'x\n';
      |         ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
 int a,b;
cin>>a>>b;
if(a+b=15)
{
cout<<"+"<<endl;
}
else if(a*b=15)
{
cout<<"*"<<endl;
}
else
{
cout<<"x"<<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: lvalue required as left operand of assignment
    9 | if(a+b=15)
      |    ~^~
a.cc:13:10: error: lvalue required as left operand of assignment
   13 | else if(a*b=15)
      |         ~^~
a.cc:19:12: error: expected primary-expression before '<' token
   19 | cout<<"x"<<<endl;
      |            ^
Language: C++

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

int main()
{
    int a, b;
    cin >> a >> b;

    if (a * b == 15) cout << "*" << endl;
    else if (a + b == 15 cout << "+" << endl;
    else cout << "x" << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: expected ';' before 'cout'
   10 |     else if (a + b == 15 cout << "+" << endl;
      |                         ^~~~~
      |                         ;
a.cc:11:5: error: expected primary-expression before 'else'
   11 |     else cout << "x" << endl;
      |     ^~~~
a.cc:10:46: error: expected ')' before 'else'
   10 |     else if (a + b == 15 cout << "+" << endl;
      |             ~                                ^
      |                                              )
   11 |     else cout << "x" << endl;
      |     ~~~~
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  
  if (a + b = 15){cout << "+" << endl;}
  else if (a * b = 15){cout << "*" << endl;}
  else {cout << "x" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (a + b = 15){cout << "+" << endl;}
      |       ~~^~~
a.cc:9:14: error: lvalue required as left operand of assignment
    9 |   else if (a * b = 15){cout << "*" << endl;}
      |            ~~^~~
Language: C++

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

int main(){
  int a, b;
  cin >> a >> b;
  
  if (a + b = 15){cout << "+" << endl;}
  if (a * b = 15){cout << "*" << endl;}
  else {cout << "x" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: lvalue required as left operand of assignment
    8 |   if (a + b = 15){cout << "+" << endl;}
      |       ~~^~~
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |   if (a * b = 15){cout << "*" << endl;}
      |       ~~^~~
Language: Java

import java.util.*;
public class Program {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
	    int b = sc.nextInt();
		int c=0;
		if((a+b)==15)
			c=1;
		else if((a*b)==15)
			c=2;
		else
			c=3;
		
		switch(c){
			case 1:
					System.out.print("+");	
					break;
			case 2:
					System.out.print("*");	
					break;
			case 3:
					System.out.print("x");	
					break;
		}
	}
}

Compiler output:
Main.java:2: error: class Program is public, should be declared in a file named Program.java
public class Program {
       ^
1 error