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

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

int main() {
    string s;
    cin >> s;
    string c=CODEFESTIVAL2016;
    int count=0;
    for(int i=0;i<s.size();i++){
        if(s.at(i)!=c.at(i)) count++;
    }
    cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'CODEFESTIVAL2016' was not declared in this scope
    7 |     string c=CODEFESTIVAL2016;
      |              ^~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0;i<n;i++)
using namespace std;
int main(){
    string ss;
    ss = "CODEFESTIVAL2016"
    string s;
    cin >> s;
    int ans = 0;
    rep(i,s.size()) if(s[i]!=ss[i]) ans++;
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:28: error: expected ';' before 'string'
    6 |     ss = "CODEFESTIVAL2016"
      |                            ^
      |                            ;
    7 |     string s;
      |     ~~~~~~                  
a.cc:8:12: error: 's' was not declared in this scope; did you mean 'ss'?
    8 |     cin >> s;
      |            ^
      |            ss
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n) ;i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define sz(x) ((int)(x).size())
using ll=long long;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
#define MOD  1000000007
const ll INF=1e18;
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; }



int main(int argc, char const *argv[]) {
  string s;
  string t="CODEFESTIVAL2016";
  cin >> s;
  
  int cnt=0;
  rep(i,n){
    if(s[i]!=t[i]) cnt++;
  }
   cout << cnt << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:25:9: error: 'n' was not declared in this scope
   25 |   rep(i,n){
      |         ^
a.cc:3:34: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0; i<(n) ;i++)
      |                                  ^
Language: C++

#include <iostream>
#include <numeric>
#include <math.h>
#include <algorithm>
#include <float.h>
#include <limits>
#include <vector> 
#include <string.h>
#include <iomanip>

#define rep(i,a,n) for(ll int (i) = (a);(i) < (n);(i)++)
#define urep(i,a,n) for(ll int (i) = (a);(i) > (n);(i)--)
#define MOD 1000000007
#define INF 2147483647
#define ll long long
#define asort(a) sort(a.begin(),a.end());//昇順ソート
#define usort(a) sort(a.rbegin(),a.rend());//降順ソート

using namespace::std;

int jo(ll int a, ll int b){//累乗
    ll int num=1;
    rep(i,0,b) num=num*a;
    return num;
}
char tobig(char s){//char大文字化
  return (s-0x20);
}
char tolow(char s){//char小文字化
  return (s+0x20);
}
int ctoi(char a){//char->int
  if('0'<=a&&a<='9') return (a-'0');
  return -1;
}

int gcd(ll int a,ll int b) {//最大公約数
  if(a<b) return gcd(b,a);
  int c;
  while ((c=a%b)) {
    a=b;
    b=c;
  }
  return b;
}
int lcm(ll int a,ll int b){//最小公倍数
 return (a*b)/gcd(a,b);
}


int main(){
  string A,B; cin>>A;
  B="CODEFESTIVAL2016";
  int count=0;
  rep(i,0,A.length()){
    if(A[i]!=B[i]) coutn++;
  }
  cout<<count;
  
}




// vector<vector<int>> 変数名(左の個数, vector<int>(右の個数));

//cout<<fixed<<setprecision(n);  //小数点n桁まで表示

//  vector<pair<int,int>> data(N);  //2つのデータを格納、.first/.secondで参照
// pairのソートはfirst優先の昇順


Compiler output:
a.cc: In function 'int main()':
a.cc:56:20: error: 'coutn' was not declared in this scope; did you mean 'count'?
   56 |     if(A[i]!=B[i]) coutn++;
      |                    ^~~~~
      |                    count
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,s,e) for(int i=s;i<=e;++i)
#define REP(i,s,e) for(int i=s;i>=e;--i)

string s;

int main(){
	int sum=0;
	cin>>s;
	if(s[0]=='C') sum++;
	if(s[1]=='O') sum++;
	if(s[2]=='D') sum++;
	if(s[3]=='E') sum++;
	if(s[4]=='F') sum++;
	if(s[5]=='E') sum++;
	if(s[6]=='S') sum++;
	if(s[7]=='T') sum++;
	if(s[8]=='I') sum++;
	if(s[9]=='V') sum++;
	if(s[10]=='A') sum++;
	if(s[11]=='L') sum++;
	if(s[12]=='2') sum++;
	if(s[13]=='0') sum++;
	if(s[14]=='1') sum++;
	if(s[15]=='6') sum++;
	cout<<16-sum<<endl;l;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:28: error: 'l' was not declared in this scope
   27 |         cout<<16-sum<<endl;l;
      |                            ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#define INF 1e9
#define rep(i, n) for(int i = 0; i < n; i++)
#define ALL(x) (x).begin(), (x).end()  //昇順
#define RALL(x) (x).rbegin(), (x).rend() // 降順
const long long mod = 1e9+7;
typedef priority_queue<int> PQ;
typedef vector<long long> VL;
typedef vector<bool> VB;
typedef vector<int> VI;  // VI a(n);
typedef vector<string> VS;  
typedef vector<char> VC; 
typedef vector<VS> VSS;
typedef vector<VC> VCC;    
typedef vector<VI> VII;   // VII a(n,vector<int>(m)) n * m 
typedef vector<VL> VLL;
typedef pair<int, int> PII;
typedef map<int, int> MP;   //MP a;
typedef vector<pair<int, int> > PS;
typedef long long ll;  //ll とdoubleは違う
template <class T>  // chmax(max, a);
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T> //chmin(min,a)
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
template<typename T>   // operator << (cout,a);
ostream& operator << (ostream& os, vector<T>& v) {
    os << "{";
    rep(i, (int)v.size()) { os << v[i] << (i < v.size() - 1 ? ", " : ""); }
    os << "}";
    return os;
}
template<typename T>
bool all_same(vector<T> v1,vector<T> v2)
{
    sort(ALL(v1));
    sort(ALL(v2),greater<T>());
    return v1 == v2;
}
   
// g++ -std=c++11 prac.cpp
ll Max=-1e9,Min=1e9+1;

int main(){
    ll a,b,d,x=0,y=0,z,n,m,k,lank=1,w,sum=0,sum2=0,ans=0;
    string s,t;
    bool ok=true;
    cin >> s;   
    t = "CODEFESTIVAL2016"
    rep(i,s.size()){
        if(s[i]==t[i]){
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:27: error: expected ';' before 'for'
   65 |     t = "CODEFESTIVAL2016"
      |                           ^
      |                           ;
a.cc:66:9: error: 'i' was not declared in this scope
   66 |     rep(i,s.size()){
      |         ^
a.cc:4:34: note: in definition of macro 'rep'
    4 | #define rep(i, n) for(int i = 0; i < n; i++)
      |                                  ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
string s="CODEFESTIVAL2016a;
long long ans;
int main()
{
    getline(cin,a);
    for(register long long  i=0;i<=15i++)
    if(a[i]!=s[i])ans++;
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc:4:10: warning: missing terminating " character
    4 | string s="CODEFESTIVAL2016a;
      |          ^
a.cc:4:10: error: missing terminating " character
    4 | string s="CODEFESTIVAL2016a;
      |          ^~~~~~~~~~~~~~~~~~~
a.cc:5:1: error: expected primary-expression before 'long'
    5 | long long ans;
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:17: error: 'a' was not declared in this scope
    8 |     getline(cin,a);
      |                 ^
a.cc:9:29: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
    9 |     for(register long long  i=0;i<=15i++)
      |                             ^
a.cc:9:39: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
    9 |     for(register long long  i=0;i<=15i++)
      |                                    ~~~^~
a.cc:9:41: error: expected ';' before ')' token
    9 |     for(register long long  i=0;i<=15i++)
      |                                         ^
      |                                         ;
a.cc:10:19: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |     if(a[i]!=s[i])ans++;
      |                   ^~~
      |                   abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,t="CODEFESTIVAL2016;
  cin>>s;
  int ans=0;
  for(int i=0;i<s.length();i++)
    if(s[i]!=t[i]) ans++;
  cout<<ans;
}

Compiler output:
a.cc:4:14: warning: missing terminating " character
    4 |   string s,t="CODEFESTIVAL2016;
      |              ^
a.cc:4:14: error: missing terminating " character
    4 |   string s,t="CODEFESTIVAL2016;
      |              ^~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:6: error: conversion from 'std::basic_istream<char>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    5 |   cin>>s;
      |   ~~~^~~
Language: C++

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

int main(){
  //int w,h,tmp;
  string s,t;
  cin >> s;
  int ans = 0;
  t = "CODEFESTIVAL2016";
  for(int i=0; i<s.size(); i++)
    if(s.at(i)==t.at(i)) ans++;
`
  cout << ans << endl;
}

Compiler output:
a.cc:12:1: error: stray '`' in program
   12 | `
      | ^
Language: C++

#include<iostream>
using namespace std;
char a[16],b[16 ={'C', 'O', 'D', 'E', 'F', 'E', 'S', 'T', 'I', 'V', 'A', 'L', '2', '0', '1', '6'};
int ans;
int main()
{
    cin>>a;
    for(int i = 0; i < 16; i ++)
	{
        if(a[i]!=b[i])ans++;
    }
    cout <<ans<<endl;
    return 0;
}

Compiler output:
a.cc:3:14: error: lvalue required as left operand of assignment
    3 | char a[16],b[16 ={'C', 'O', 'D', 'E', 'F', 'E', 'S', 'T', 'I', 'V', 'A', 'L', '2', '0', '1', '6'};
      |              ^~
a.cc:3:98: error: expected ']' before ';' token
    3 | char a[16],b[16 ={'C', 'O', 'D', 'E', 'F', 'E', 'S', 'T', 'I', 'V', 'A', 'L', '2', '0', '1', '6'};
      |                                                                                                  ^
      |                                                                                                  ]
a.cc: In function 'int main()':
a.cc:10:18: error: 'b' was not declared in this scope
   10 |         if(a[i]!=b[i])ans++;
      |                  ^
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
typedef long long ll;
int main(void){
  int i;
  string s,t="CODEFESTIVAL2016";
  cin >> s;
  for (i=0;i<16;i++) if (s[i]!=t[i]) ans++;
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:38: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   for (i=0;i<16;i++) if (s[i]!=t[i]) ans++;
      |                                      ^~~
      |                                      abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include<iostream>
using namespace std;
int main(void){
  int a=0,b,c;
  string s;
  string t = "CODEFESTIVAL2016"
 cin >> s;
  for(int i = 0;i < s.size();i++){
    if(s.at(i) != t.at(i)){
      a++;
    }
  }
    cout << a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: expected ',' or ';' before 'cin'
    7 |  cin >> s;
      |  ^~~
Language: C++

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

int main() {
string S; cin>>S;
  string Z=="CODEFESTIVAL2016";
  int A=0;
  for(int i=0; i<16; i++){
    if(S.at(i)==Z.at(i)) continue;
    else A++;
  }
  cout<<A<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before '==' token
    6 |   string Z=="CODEFESTIVAL2016";
      |           ^~
a.cc:9:17: error: 'Z' was not declared in this scope
    9 |     if(S.at(i)==Z.at(i)) continue;
      |                 ^
Language: C++

#include<Bits/stdc++.h>
using namespace std;
int ans;
string s,cmp="CODEFESTIVAL2016";
int main(){
	cin>>s;
	int l=s.size();
	for(int i=0;i<l;i++)
		if(s[i]!=cmp[i])ans++;
	printf("%d\n",ans);
	return 0;
}

Compiler output:
a.cc: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;
string s="CODEFESTIVAL2016";
string cxk;
long long a;
int main(){
    cin>>cxk;
    if(cxk[0] != 'C') a++;
    if(cxk[1] != 'O') a++;
    if(cxk[2] != 'D') a++;
    if(cxk[3] != 'E') a++;
    if(cxk[4] != 'F') a++;
    if(cxk[5] != 'E') a++;
    if(cxk[6] != 'S') a++;
    if(cxk[7] != 'T') a++;
    if(cxk[8] != 'I') a++;
    if(cxk[9] != 'V') a++;
    if(cxk[10] != 'A') a++;
    if(cxk[11] != 'L') a++;
    if(cxk[12] != '2') a++;
    if(cxk[13] != '0') a++;
    if(cxk[14] != '1') a++;
    if(cxk[15] != '6') ans++;
    cout<<a<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |     if(cxk[15] != '6') ans++;
      |                        ^~~
      |                        abs
Language: C++

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

int main(){
  string S, T;
  cin >> S;
  T = "CODEFESTIVAL2016";
  for(int i=0;i<16;i++){
    if(S[i] != T[i]) ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     if(S[i] != T[i]) ans++;
      |                      ^~~
      |                      abs
a.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

int main() {
  vector<char> data(16);
  for (int i = 0; i < 16; i++) {
    cin >> data.at(i);
  }

  string str = "CODEFESTIVAL2016"
    
  int answer = 0 ;

  for (int i = 0; i < 16; i++) {

    if (data.at(i) != str.at(i) ) {
      answer++;
    }

  }

  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected ',' or ';' before 'int'
   12 |   int answer = 0 ;
      |   ^~~
a.cc:17:7: error: 'answer' was not declared in this scope
   17 |       answer++;
      |       ^~~~~~
a.cc:22:11: error: 'answer' was not declared in this scope
   22 |   cout << answer << endl;
      |           ^~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<bits/stdc++.h>
#include<cmath>
#include<bitset>
#define ll long long
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define FFOR(i,a,b) for(int i=(a);i<=(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define RREP(i,n)  FFOR(i,0,n)
#define SORT(V) sort((V).begin(),(V).end())
#define INF ((1LL<<62)-(1LL<<31))
#define MOD 1000000007
using namespace std;

int main(){
  string S,A="CODEFESTIVAL2016";
  cin>>S;
  int cnt=0;
  for(int i=0; i<16; ++i){
    if(S.at(i)!=A.at(i)) ans++;
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: 'ans' was not declared in this scope; did you mean 'abs'?
   23 |     if(S.at(i)!=A.at(i)) ans++;
      |                          ^~~
      |                          abs
a.cc:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |   cout<<ans<<endl;
      |         ^~~
      |         abs
Language: C++

#import<iostream>
char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:2:37: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                     ^~~~
a.cc: In function 'int main()':
a.cc:2:91: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    2 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                                                           ^~~~
      |                                                                                           std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc: At global scope:
a.cc:2:103: error: expected constructor, destructor, or type conversion before '(' token
    2 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                                                                       ^
Language: C++

char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);

Compiler output:
a.cc:1:37: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                     ^~~~
a.cc: In function 'int main()':
a.cc:1:61: error: 'getchar' was not declared in this scope
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                             ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
a.cc:1:82: error: 'cout' is not a member of 'std'
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                                                  ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
a.cc:1:91: error: 'endl' was not declared in this scope
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                                                           ^~~~
a.cc: At global scope:
a.cc:1:103: error: expected constructor, destructor, or type conversion before '(' token
    1 | char c[]="CODEFESTIVAL2016";int i,a;main(){for(;i<16;i++)a+=getchar()!=c[i];std::cout<<a<<endl;}printf("%d\n",a);
      |                                                                                                       ^
Language: C++

#import<iostream>
char c[]="CODEFESTIVAL2016";int i,ans;
main(){for(;i<17;i++)if(getchar()!=c[i])ans++;cout<<ans;}

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){for(;i<17;i++)if(getchar()!=c[i])ans++;cout<<ans;}
      | ^~~~
a.cc: In function 'int main()':
a.cc:3:47: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    3 | main(){for(;i<17;i++)if(getchar()!=c[i])ans++;cout<<ans;}
      |                                               ^~~~
      |                                               std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  string a,b; int ans=0;
  cin>>a; b="CODEFESTIVAL2016"
    rep(i,16) if(a[i]!=b[i]) ans++;
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ';' before 'for'
    6 |   cin>>a; b="CODEFESTIVAL2016"
      |                               ^
      |                               ;
a.cc:7:9: error: 'i' was not declared in this scope
    7 |     rep(i,16) if(a[i]!=b[i]) ans++;
      |         ^
a.cc:3:30: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s1,s2="CODEFESTIVAL2016"
  cin >> s1;
  int x=0;
  for(int i=0;i<16;i++){
    if(s1[i]!=s2[i])x++;
  }
  cout<<x<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: expected ',' or ';' before 'cin'
    5 |   cin >> s1;
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
	int a=0;
	string s,s1="CODEFESTIVAL2016";
	cin>>s;
	for(int i=0;i<16;i++){
		if(s[i]!=s1[i]){
			ans++;
		}
	}
	cout<<ans<<endl;
}

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

object Main{
  def main(args: Array[String]): Unit={
    val str = readLine()
    val code = "CODEFESTIVAL2016"
    var cnt = 0
    for(i<-0 to 15; if str(i) != code(i)) yield cnt+=1
    println(cnt)
  }
}

Compiler output:
a.cc:1:1: error: 'object' does not name a type
    1 | object Main{
      | ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string a,b="CODEFESTIVAL2016";
int main()
{
	double ans;
	c=16;
	getline(cin,a);
	for(int i=0;i<=15;i++)
	{
		if(a[i]==b[i]) ans--;
	}
	cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'c' was not declared in this scope
    7 |         c=16;
      |         ^
Language: C++

include<bits/stdc++.h>//万能文件头
using namespace std;
string s="CODEFESTIVAL2016";//好像也没什么用
string a;
long long ans;
int main(){
    cin>>a;//输入字符串
    if(a[0] != 'C') ans++;//开始无脑判断
    if(a[1] != 'O') ans++;//要是有一个不一样
    if(a[2] != 'D') ans++;//就马上加上去
    if(a[3] != 'E') ans++;
    if(a[4] != 'F') ans++;
    if(a[5] != 'E') ans++;
    if(a[6] != 'S') ans++;
    if(a[7] != 'T') ans++;
    if(a[8] != 'I') ans++;
    if(a[9] != 'V') ans++;
    if(a[10] != 'A') ans++;
    if(a[11] != 'L') ans++;
    if(a[12] != '2') ans++;
    if(a[13] != '0') ans++;
    if(a[14] != '1') ans++;
    if(a[15] != '6') ans++;
    cout<<ans<<endl;//加完了，输出
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>//万能文件头
      | ^~~~~~~
a.cc:3:1: error: 'string' does not name a type
    3 | string s="CODEFESTIVAL2016";//好像也没什么用
      | ^~~~~~
a.cc:4:1: error: 'string' does not name a type
    4 | string a;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a;//输入字符串
      |     ^~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a;//输入字符串
      |          ^
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout<<ans<<endl;//加完了，输出
      |     ^~~~
a.cc:24:16: error: 'endl' was not declared in this scope
   24 |     cout<<ans<<endl;//加完了，输出
      |                ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
	string s;
	int k=0;
	cin>>s;
	if(s[0]!='C')k++;
	if(s[1]!='O')k++;
	if(s[2]!='D')k++;
	if(s[3]!='E')k++;
	if(s[4]!='F')k++;FESTIVAL2016CODE
	if(s[5]!='E')k++;
	if(s[6]!='S')k++;
	if(s[7]!='T')k++;
	if(s[8]!='I')k++;
	if(s[9]!='V')k++;
	if(s[10]!='A')k++;
	if(s[11]!='L')k++;
	if(s[12]!='2')k++;
	if(s[13]!='0')k++;
	if(s[14]!='1')k++;
	if(s[15]!='6')k++;
	cout<<k<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:26: error: 'FESTIVAL2016CODE' was not declared in this scope
   12 |         if(s[4]!='F')k++;FESTIVAL2016CODE
      |                          ^~~~~~~~~~~~~~~~
Language: C++

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

int main(){
  string s;
  cin >> s;
  string t="CODEFESTIVAL2016";
  int res=0;
  for(int i=0;i<t.size();++i){
    if(s[i]!=t[i])res++;
  }
  cout<<res<<endl;
}

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

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

int main(){
string a,b;
cin>>a;
  b="CODEFESTIVAL2016"
int ans;
ans=0;
  for(long long i=0;i<16;i++){
    if(a[i]==b[i]){
     ans++;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'int'
    8 |   b="CODEFESTIVAL2016"
      |                       ^
      |                       ;
    9 | int ans;
      | ~~~                    
a.cc:10:1: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 | ans=0;
      | ^~~
      | abs
Language: C++

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

int main(int argc, char const *argv[]){
	int cnt = 0;
	string cf2016[] = "CODEFESTIVAL2016";
	string s;
	cin >> s;
	for (int i = 0; i < cf2016.size(); ++i)
	{
		if(cf2016.at(i) != s.at(i))	++cnt;
	}
	cout << cnt << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:6:27: error: array must be initialized with a brace-enclosed initializer
    6 |         string cf2016[] = "CODEFESTIVAL2016";
      |                           ^~~~~~~~~~~~~~~~~~
a.cc:9:36: error: request for member 'size' in 'cf2016', which is of non-class type 'std::string [17]' {aka 'std::__cxx11::basic_string<char> [17]'}
    9 |         for (int i = 0; i < cf2016.size(); ++i)
      |                                    ^~~~
a.cc:11:27: error: request for member 'at' in 'cf2016', which is of non-class type 'std::string [17]' {aka 'std::__cxx11::basic_string<char> [17]'}
   11 |                 if(cf2016.at(i) != s.at(i))     ++cnt;
      |                           ^~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int idx=0;
  string s=(16,CODEFESTIVAL2016);
  string ss;
  cin>>ss;
  for(int i=16;i>0;i--){
  	  if(s[i]!=ss[i])idx++;
  }
  
  cout<<idx<<endl;
  
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'CODEFESTIVAL2016' was not declared in this scope
    7 |   string s=(16,CODEFESTIVAL2016);
      |                ^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int idx=0;
  string s=CODEFESTIVAL2016;
  string ss;
  cin>>ss;
  for(int i=16;i>0;i--){
  	  if(s[i]!=ss[i])idx++;
  }
  
  cout<<idx<<endl;
  
 return 0; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'CODEFESTIVAL2016' was not declared in this scope
    7 |   string s=CODEFESTIVAL2016;
      |            ^~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int idx=0;
  string s=CODEFESTIVAL2016;
  string ss;
  cin>>ss;
  for(int i=16;i>0;i--){
  	  if(s[i]!=ss[i])idx++;
  }
  
  cout<<idx<<endl;
  
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'CODEFESTIVAL2016' was not declared in this scope
    7 |   string s=CODEFESTIVAL2016;
      |            ^~~~~~~~~~~~~~~~
Language: C++

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

int main() {
  string s;
  cin >> s;
  string a = C0DEFESTIVAL2O16;
  int ans = 0;
  for(int i = 0; i < 16; i++) {
    if(s[i] != a[i]) ans++;
  }
  cout << ans << endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'C0DEFESTIVAL2O16' was not declared in this scope
    7 |   string a = C0DEFESTIVAL2O16;
      |              ^~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define int long long
#define f(i,n) for(int i=0;i<n;i++)
#define INF INT_MAX
#define LINF LLONG_MAX
#define mod 1000000007
#define pie 3.141592653589793238462643383279
#define P pair<int,int>
#define prique priority_queue
#define F first
#define S second
using namespace std;
signed main(){
	int ans=0;
	string s=CODEFESTIVAL2016,t;
	cin>>t;
	f(i,16){
		if(s[i]!=t[i]) ans++;
	}
	cout<<ans<<endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: 'CODEFESTIVAL2016' was not declared in this scope
   15 |         string s=CODEFESTIVAL2016,t;
      |                  ^~~~~~~~~~~~~~~~
a.cc:16:14: error: 't' was not declared in this scope
   16 |         cin>>t;
      |              ^
Language: C++

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

int main() {
	string S;
	cin>>S;
	string S0="CODEFESTIVAL2016";
	int cnt=0;
	rep(i,S.size()){
		if(S[i]!=S0[i])cnt++;
	}
	cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         rep(i,S.size()){
      |             ^
a.cc:9:9: error: 'rep' was not declared in this scope
    9 |         rep(i,S.size()){
      |         ^~~
Language: C++

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

string s="CODEFESTIVAL2016a";
int ans=0;

int main()
{
    gets(a);
    for(int i=0;i<=15;i++)
        if(a[i]!=s[i]) ans++;
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'a' was not declared in this scope
    9 |     gets(a);
      |          ^
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |     gets(a);
      |     ^~~~
      |     getw
Language: C++

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

string s="CODEFESTIVAL2016a";
int ans=0;

int main()
{
    getline(cin,a);
    for(register ll i=0;i<=15i++)
        if(a[i]!=s[i]) ans++;
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'a' was not declared in this scope
    9 |     getline(cin,a);
      |                 ^
a.cc:10:18: error: 'll' does not name a type
   10 |     for(register ll i=0;i<=15i++)
      |                  ^~
a.cc:10:25: error: expected ';' before 'i'
   10 |     for(register ll i=0;i<=15i++)
      |                         ^
      |                         ;
a.cc:10:25: error: 'i' was not declared in this scope
a.cc:10:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   10 |     for(register ll i=0;i<=15i++)
      |                            ~~~^~
a.cc:10:33: error: expected ';' before ')' token
   10 |     for(register ll i=0;i<=15i++)
      |                                 ^
      |                                 ;
Language: C++

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

string s="CODEFESTIVAL2016a;
int ans=0;

int main()
{
    getline(cin,a);
    for(register ll i=0;i<=15i++)
        if(a[i]!=s[i]) ans++;
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc:4:10: warning: missing terminating " character
    4 | string s="CODEFESTIVAL2016a;
      |          ^
a.cc:4:10: error: missing terminating " character
    4 | string s="CODEFESTIVAL2016a;
      |          ^~~~~~~~~~~~~~~~~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int ans=0;
      | ^~~
a.cc: In function 'int main()':
a.cc:9:17: error: 'a' was not declared in this scope
    9 |     getline(cin,a);
      |                 ^
a.cc:10:18: error: 'll' does not name a type
   10 |     for(register ll i=0;i<=15i++)
      |                  ^~
a.cc:10:25: error: expected ';' before 'i'
   10 |     for(register ll i=0;i<=15i++)
      |                         ^
      |                         ;
a.cc:10:25: error: 'i' was not declared in this scope
a.cc:10:31: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   10 |     for(register ll i=0;i<=15i++)
      |                            ~~~^~
a.cc:10:33: error: expected ';' before ')' token
   10 |     for(register ll i=0;i<=15i++)
      |                                 ^
      |                                 ;
a.cc:11:24: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |         if(a[i]!=s[i]) ans++;
      |                        ^~~
      |                        abs
a.cc:12:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
#include <string>
#include <vector>
typedef unsigned int UINT;
using namespace std;


int main(void) {
    const string CLECT = "CODEFESTIVAL2016";
    string C;
    cin >> C;
    int ans = 0;
    for (int index = 0; i < CLECT.length(); ++index) {
        if (CLECT[index] != C[index])
            ans++;
    }
        cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'i' was not declared in this scope
   13 |     for (int index = 0; i < CLECT.length(); ++index) {
      |                         ^
Language: C++

#include <iostream>
#include<string>
using namespace std;

int main() {
	string s;cin>>s;
	char s2[16]="CODEFESTIVAL2016";
	int ans=0;
	for(int i=0;i<16;i++){
		if(s2!=s)ans++;
	}
	cout<<ans<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: initializer-string for 'char [16]' is too long [-fpermissive]
    7 |         char s2[16]="CODEFESTIVAL2016";
      |                     ^~~~~~~~~~~~~~~~~~
Language: C++

s1 = 'CODEFESTIVAL2016'
print s2
ans = 0
for i in range(len(s1)):
    ans += [0, 1][s1[i] != s2[i]]
print ans


Compiler output:
a.cc:1:6: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes
    1 | s1 = 'CODEFESTIVAL2016'
      |      ^~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 's1' does not name a type
    1 | s1 = 'CODEFESTIVAL2016'
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s;
int ans=0;
int main()
{
    cin>>s;
    if(s!='C')ans++;
    cin>>s;
    if(s!='O')ans++;
    cin>>s;
    if(s!='D')ans++;
    cin>>s;
    if(s!='E')ans++;
    cin>>s;
    if(s!='F')ans++;
    cin>>s;
    if(s!='E')ans++;
    cin>>s;
    if(s!='S')ans++;
    cin>>s;
    if(s!='T')ans++;
    cin>>s;
    if(s!='I')ans++;
    cin>>s;
    if(s!='V')ans++;
    cin>>s;
    if(s!='A')ans++;
    cin>>s;ODEFESTIVAL2016
    if(s!='L')ans++;
    cin>>s;
    if(s!='2')ans++;
    cin>>s;
    if(s!='0')ans++;
    cin>>s;
    if(s!='1')ans++;
    cin>>s;
    if(s!='6')ans++;
    cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: 'ODEFESTIVAL2016' was not declared in this scope
   29 |     cin>>s;ODEFESTIVAL2016
      |            ^~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
string st,st1;
int main()
{
	st1="CODEFESTIVAL2016";
	cin>>st;
	for(int i=0;i<st.size();i++)
	  if(st[i]!=st1[i])z++;
	cout<<z<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: 'z' was not declared in this scope
    9 |           if(st[i]!=st1[i])z++;
      |                            ^
a.cc:10:15: error: 'z' was not declared in this scope
   10 |         cout<<z<<endl;
      |               ^
Language: C++

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

string s,t="CODEFESTIVAL2016";
int count=0;

int main()
{
    cin>>s;
    for (int i=0; i<s.length(); i++)
        if(s[i]!=t[i])
            count++;
    printf("%d\n",count);        
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: reference to 'count' is ambiguous
   13 |             count++;
      |             ^~~~~
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:6:5: note:                 'int count'
    6 | int count=0;
      |     ^~~~~
a.cc:14:19: error: reference to 'count' is ambiguous
   14 |     printf("%d\n",count);
      |                   ^~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: candidates are: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename std::iterator_traits<_II>::difference_type> std::count(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
/usr/include/c++/14/bits/stl_algo.h:4025:5: note:                 'template<class _IIter, class _Tp> typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&)'
 4025 |     count(_InputIterator __first, _InputIterator __last, const _Tp& __value)
      |     ^~~~~
a.cc:6:5: note:                 'int count'
    6 | int count=0;
      |     ^~~~~
Language: C++



using namespace std;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
#define debug(x) cerr << #x << ":" << x << endl;
#define OK(ok) cout << (ok ? "Yes" : "No") << endl;
typedef long long ll;

void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail) {
  cin >> head; CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)

const int INF = 1e9 + 1;
const int MOD = 1e9 + 7;
const int MAX_N = 1e5 + 1;

string raw = "CODEFESTIVAL2016";
string s;

int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  cin >> s;
  int ans = 0;
  REP(i, s.size()) {
    if (s[i] != raw[i]) ans++;
  }

  cout << ans << endl;

  return 0;
}



Compiler output:
a.cc: In function 'void CINT(Head&&, Tail&& ...)':
a.cc:18:3: error: 'cin' was not declared in this scope
   18 |   cin >> head; CINT(move(tail)...);
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc: At global scope:
a.cc:28:1: error: 'string' does not name a type
   28 | string raw = "CODEFESTIVAL2016";
      | ^~~~~~
a.cc:29:1: error: 'string' does not name a type
   29 | string s;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:33:3: error: 'cin' was not declared in this scope
   33 |   cin.tie(0);
      |   ^~~
a.cc:33:3: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:34:3: error: 'ios' has not been declared
   34 |   ios::sync_with_stdio(false);
      |   ^~~
a.cc:36:10: error: 's' was not declared in this scope
   36 |   cin >> s;
      |          ^
a.cc:39:17: error: 'raw' was not declared in this scope
   39 |     if (s[i] != raw[i]) ans++;
      |                 ^~~
a.cc:42:3: error: 'cout' was not declared in this scope
   42 |   cout << ans << endl;
      |   ^~~~
a.cc:42:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:42:18: error: 'endl' was not declared in this scope
   42 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: Java

import java.util.Scanner;

public class Signboard{
	public static void main(String[] args)
	{
		Scanner sc =new Scanner(System.in);
		String s=sc.next(); //入力された文字列
		String test="CODEFESTIVAL2016";
		int num=0;	//書き換えるかい回数
		
		//1文字ずつ一致しているか確認
		for(int i=0;i<s.length();i++)
		{
			char s_c=s.charAt(i);
			if(!(s_c==test.charAt(i))) num++;
		}

		//一致していない回数(=書き換える回数)を出力
		System.out.println(num);
	}
} 

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

#include<iostream>
#include<string>

using namespace std;

int main(){
  string s;
  cin >> s;
  string str = "CODEFESTIVAL2016";
  int num = 0;
  for(int = 0;i < str.size();i++){
    if(s[i] != str[i]){
      num++;
    }
  }
  cout << num << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected unqualified-id before '=' token
   11 |   for(int = 0;i < str.size();i++){
      |           ^
a.cc:11:10: error: expected ';' before '=' token
   11 |   for(int = 0;i < str.size();i++){
      |          ^~
      |          ;
a.cc:11:11: error: expected primary-expression before '=' token
   11 |   for(int = 0;i < str.size();i++){
      |           ^
a.cc:11:15: error: 'i' was not declared in this scope
   11 |   for(int = 0;i < str.size();i++){
      |               ^
a.cc:11:29: error: expected ')' before ';' token
   11 |   for(int = 0;i < str.size();i++){
      |      ~                      ^
      |                             )
a.cc:11:30: error: 'i' was not declared in this scope
   11 |   for(int = 0;i < str.size();i++){
      |                              ^
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
  string s;
  cin >> s;
  string str = "CODEFESTIVAL2016";
  int num = 0;
  REP(i,str.size()){
    if(s[i] != str[i]){
      num++;
    }
  }
  cout << num << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   REP(i,str.size()){
      |       ^
a.cc:11:3: error: 'REP' was not declared in this scope
   11 |   REP(i,str.size()){
      |   ^~~
Language: C

#include <iostream>
#include <string>
using namespace std;
int main(void){
    string s,t;
    int x=0,i;
    cin>>s;
    t="CODEFESTIVAL2016";
    for(i=0;i<16;i++){
        if(s[i]!=t[i]) x++;
    }
    cout<<x<<endl;
    return 0;
}

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

#include <iostream>
using namespace std;
int main(void){
    string s,t;
    int x=0,i;
    cin>>s;
    t="CODEFESTIVAL2016";
    for(i=0;i<16;i++){
        if(s[i]!=t[i]) x++;
    }
    cout<<x<<endl;
    return 0;
}

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

#include <bits/stdc++.h>
// iostream is too mainstream
#include <cstdio>
// bitch please
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <list>
#include <cmath>
#include <iomanip>
#include <time.h>
#define dibs reserve
#define OVER9000 1234567890123456789LL
#define ALL_THE(CAKE,LIE) for(auto LIE =CAKE.begin(); LIE != CAKE.end(); LIE++)
#define tisic 47
#define soclose 1e-8
#define chocolate win
// so much chocolate
#define patkan 9
#define ff first
#define ss second
#define abs(x) ((x < 0)?-(x):x)
#define uint unsigned int
#define dbl long double
#define pi 3.14159265358979323846
using namespace std;
// mylittledoge

typedef long long cat;

#ifdef DONLINE_JUDGE
	// palindromic tree is better than splay tree!
	#define lld I64d
#endif

int main() {
	cin.sync_with_stdio(0);
	cin.tie(0);
	cout << fixed << setprecision(10);
	string S, Sc ="CODEFESTIVAL2016";
	cin >> S;
	for(int i =0; i < (int)S.length(); i++) if(S[i] != Sc[i]) ans++;
	cout << ans << "\n";
	return 0;}

// look at my code
// my code is amazing


Compiler output:
a.cc: In function 'int main()':
a.cc:47:67: error: 'ans' was not declared in this scope; did you mean 'abs'?
   47 |         for(int i =0; i < (int)S.length(); i++) if(S[i] != Sc[i]) ans++;
      |                                                                   ^~~
      |                                                                   abs
a.cc:48:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   48 |         cout << ans << "\n";
      |                 ^~~
      |                 abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define vvi vector<vi>
#define vs vector<string>
#define pb push_back
#define P pair<int,int>
#define vp vector<P>
#define PP pair<P,int>
#define vpp vector<PP>
#define fi first
#define se second
#define INF 1e9
#define MOD 1000000007
#define REP(i,n) for(int i=0;i<n;i++)
#define REPR(i,n) for(int i=n;i>=0;i--)
#define FOR(i,m,n) for(int i=m;i<n;i++)
#define all(x) (x).begin(),(x).end()
int main(){
    string t;
    cin>>t;
    string a="CODEFESTIVAL2016";
    int ans=0;
    REP(i,t.length()){
        if(a[i]!=s[i])ans++;
    }
    cout<<ans<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: 's' was not declared in this scope
   25 |         if(a[i]!=s[i])ans++;
      |                  ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZE 100005
#define FOR(i,a,n) for(i=(a);i<(n);i++)
int MAX(int a,int b){ return a>b?a:b; }
int MIN(int a,int b){ return a<b?a:b; }
int comp(const void* a,const void* b){
	return *(int*)a-*(int*)b;
}
char s[17].t[17]="CODEFESTIVAL2016"; 
int main(void)
{
	int i,ans=0;
	scanf("%s",s);
	FOR(i,0,16){
		if(s[i]!=t[i]) ans++;
	}
	printf("%d\n",ans);
	return 0;
}
    

Compiler output:
main.c:18:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   18 | char s[17].t[17]="CODEFESTIVAL2016";
      |           ^
main.c: In function 'main':
main.c:22:20: error: 's' undeclared (first use in this function)
   22 |         scanf("%s",s);
      |                    ^
main.c:22:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:26: error: 't' undeclared (first use in this function)
   24 |                 if(s[i]!=t[i]) ans++;
      |                          ^
Language: C++

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

char b[17] = "CODEFESTIVAL2016";

int main(){
    char a[17]; scanf("%s", a);
    for(int i = 0; i < 16; i++) if(a[i] != b[i]) cnt++;
    printf("%d\n", cnt);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:50: error: 'cnt' was not declared in this scope; did you mean 'int'?
    8 |     for(int i = 0; i < 16; i++) if(a[i] != b[i]) cnt++;
      |                                                  ^~~
      |                                                  int
a.cc:9:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |     printf("%d\n", cnt);
      |                    ^~~
      |                    int
Language: C++

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

int b[17] = "CODEFESTIVAL2016";

int main(){
    char a[17]; scanf("%s", a);
    for(int i = 0; i < 16; i++) if(a[i] != b[i]) cnt++;
    printf("%d\n", cnt);
}

Compiler output:
a.cc:4:13: error: array must be initialized with a brace-enclosed initializer
    4 | int b[17] = "CODEFESTIVAL2016";
      |             ^~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:50: error: 'cnt' was not declared in this scope; did you mean 'int'?
    8 |     for(int i = 0; i < 16; i++) if(a[i] != b[i]) cnt++;
      |                                                  ^~~
      |                                                  int
a.cc:9:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |     printf("%d\n", cnt);
      |                    ^~~
      |                    int