Language: C++

#include<bits/stdc++.h>
using namespace std;
#define mk make_pair
int s[30001],ss[30001],c=2;
unordered_set<long long>se;
int main(){
????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
????for(int i=2;i<30001;i++){
????????int p=0;
????????for(int j=2;j*j<=i;j++)
????????????if(i%j==0)p++;
????????if(!p)ss[i]++,s[c++]=i;
????}
????int n;
????while(cin>>n,n){
????????se.clear();
????????int sum=0;
????????for(int i=0;i<c;i++){
????????????if(s[i]>n/2+1)break;
????????????for(int j=0;j<c;j++){
????????if(s[j]+s[i]>n)break;
????????if(n-s[j]-s[i]>0)
????????????if(ss[n-s[j]-s[i]]){
????????????????int d[3];
????????????????d[0]=s[i];
????????????????d[1]=s[j];
????????????????d[2]=n-s[j]-s[i];
????????????????sort(d,d+3);
????????????????if(!se.count(d[0]*10000000000+d[1]*100000+d[2])&&d[0]+d[1]>d[2]){
????????????????se.insert(d[0]*10000000000+d[1]*100000+d[2]);
????????????????????????sum++;
????????????????????}
????????????}
????????????}
????????}
????????cout<<sum<<endl;
????}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: expected primary-expression before '?' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      | ^
a.cc:7:2: error: expected primary-expression before '?' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |  ^
a.cc:7:3: error: expected primary-expression before '?' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |   ^
a.cc:7:4: error: expected primary-expression before '?' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |    ^
a.cc:7:11: error: expected ':' before ';' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |           ^
      |           :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:11: error: expected ':' before ';' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |           ^
      |           :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:11: error: expected ':' before ';' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |           ^
      |           :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:7:11: error: expected ':' before ';' token
    7 | ????s[0]=2;s[1]=3;ss[2]=ss[3]=1;
      |           ^
      |           :
a.cc:7:11: error: expected primary-expression before ';' token
a.cc:8:1: error: expected primary-expression before '?' token
    8 | ????for(int i=2;i<30001;i++){
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ????for(int i=2;i<30001;i++){
      |  ^
a.cc:8:3: error: expected primary-expression before '?' token
    8 | ????for(int i=2;i<30001;i++){
      |   ^
a.cc:8:4: error: expected primary-expression before '?' token
    8 | ????for(int i=2;i<30001;i++){
      |    ^
a.cc:8:5: error: expected primary-expression before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
a.cc:8:5: error: expected ':' before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
      |     :
a.cc:8:5: error: expected primary-expression before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
a.cc:8:5: error: expected ':' before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
      |     :
a.cc:8:5: error: expected primary-expression before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
a.cc:8:5: error: expected ':' before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
      |     :
a.cc:8:5: error: expected primary-expression before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
a.cc:8:5: error: expected ':' before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
      |     :
a.cc:8:5: error: expected primary-expression before 'for'
    8 | ????for(int i=2;i<30001;i++){
      |     ^~~
a.cc:8:17: error: 'i' was not declared in this scope
    8 | ????for(int i=2;i<30001;i++){
      |                 ^
a.cc:14:1: error: expected primary-expression before '?' token
   14 | ????int n;
      | ^
a.cc:14:2: error: expected primary-expression before '?' token
   14 | ????int n;
      |  ^
a.cc:14:3: error: expected primary-expression before '?' token
   14 | ????int n;
      |   ^
a.cc:14:4: error: expected primary-expression before '?' token
   14 | ????int n;
      |    ^
a.cc:14:5: error: expected primary-expression before 'int'
   14 | ????int n;
      |     ^~~
a.cc:14:5: error: expected ':' before 'int'
   14 | ????int n;
      |     ^~~
      |     :
a.cc:14:5: error: expected primary-expression before 'int'
   14 | ????int n;
      |     ^~~
a.cc:14:5: error: expected ':' before 'int'
   14 | ????int n;
      |     ^~~
      |     :
a.cc:14:5: error: expected primary-expression before 'int'
   14 | ????int n;
      |     ^~~
a.cc:14:5: error: expected ':' before 'int'
   14 | ????int n;
      |     ^~~
      |     :
a.cc:14:5: error: expected primary-expression before 'int'
   14 | ????int n;
      |     ^~~
a.cc:14:5: error: expected ':' before 'int'
   14 | ????int n;
      |     ^~~
      |     :
a.cc:14:5: error: expected primary-expression before 'int'
   14 | ????int n;
      |     ^~~
a.cc:15:1: error: expected primary-expression before '?' token
   15 | ????while(cin>>n,n){
      | ^
a.cc:15:2: error: expected primary-expression before '?' token
   15 | ????while(cin>>n,n){
      |  ^
a.cc:15:3: error: expected primary-expression before '?' token
   15 | ????while(cin>>n,n){
      |   ^
a.cc:15:4: error: expected primary-expression before '?' token
   15 | ????while(cin>>n,n){
      |    ^
a.cc:15:5: error: expected primary-expression before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
a.cc:15:5: error: expected ':' before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
      |     :
a.cc:15:5: error: expected primary-expression before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
a.cc:15:5: error: expected ':' before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
      |     :
a.cc:15:5: error: expected primary-expression before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
a.cc:15:5: error: expected ':' before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
      |     :
a.cc:15:5: error: expected primary-expression before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
a.cc:15:5: error: expected ':' before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~
      |     :
a.cc:15:5: error: expected primary-expression before 'while'
   15 | ????while(cin>>n,n){
      |     ^~~~~