Submission #1727703


Source Code Expand

#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;
}

Submission Info

Submission Time
Task A - Signboard
User kodamune
Language C++14 (GCC 5.4.1)
Score 0
Code Size 255 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:11:7: error: ‘i’ was not declared in this scope
   REP(i,str.size()){
       ^
./Main.cpp:11:19: error: ‘REP’ was not declared in this scope
   REP(i,str.size()){
                   ^