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

#include <iostream>
using namespace std;
int main()
{

string s ;

cin>>s;

if(s==”SUN”)
    cout<<"7";
    else if (s==”MON”)
    cout<<"6";
        else if (s==”TUE”)
    cout<<"5";
      else if (s==”WED”)
    cout<<"4";
      else if (s==”THU”)
    cout<<"3";
      else if (s==”FRI”)
    cout<<"2";
      else if (s==”SAT”)
    cout<<"1";

return 0;
}

Compiler output:
a.cc:10:7: error: extended character ” is not valid in an identifier
   10 | if(s==”SUN”)
      |       ^
a.cc:10:7: error: extended character ” is not valid in an identifier
a.cc:12:17: error: extended character ” is not valid in an identifier
   12 |     else if (s==”MON”)
      |                 ^
a.cc:12:17: error: extended character ” is not valid in an identifier
a.cc:14:21: error: extended character ” is not valid in an identifier
   14 |         else if (s==”TUE”)
      |                     ^
a.cc:14:21: error: extended character ” is not valid in an identifier
a.cc:16:19: error: extended character ” is not valid in an identifier
   16 |       else if (s==”WED”)
      |                   ^
a.cc:16:19: error: extended character ” is not valid in an identifier
a.cc:18:19: error: extended character ” is not valid in an identifier
   18 |       else if (s==”THU”)
      |                   ^
a.cc:18:19: error: extended character ” is not valid in an identifier
a.cc:20:19: error: extended character ” is not valid in an identifier
   20 |       else if (s==”FRI”)
      |                   ^
a.cc:20:19: error: extended character ” is not valid in an identifier
a.cc:22:19: error: extended character ” is not valid in an identifier
   22 |       else if (s==”SAT”)
      |                   ^
a.cc:22:19: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:7: error: '\U0000201dSUN\U0000201d' was not declared in this scope
   10 | if(s==”SUN”)
      |       ^~~~~
a.cc:12:17: error: '\U0000201dMON\U0000201d' was not declared in this scope
   12 |     else if (s==”MON”)
      |                 ^~~~~
a.cc:14:21: error: '\U0000201dTUE\U0000201d' was not declared in this scope
   14 |         else if (s==”TUE”)
      |                     ^~~~~
a.cc:16:19: error: '\U0000201dWED\U0000201d' was not declared in this scope
   16 |       else if (s==”WED”)
      |                   ^~~~~
a.cc:18:19: error: '\U0000201dTHU\U0000201d' was not declared in this scope
   18 |       else if (s==”THU”)
      |                   ^~~~~
a.cc:20:19: error: '\U0000201dFRI\U0000201d' was not declared in this scope
   20 |       else if (s==”FRI”)
      |                   ^~~~~
a.cc:22:19: error: '\U0000201dSAT\U0000201d' was not declared in this scope
   22 |       else if (s==”SAT”)
      |                   ^~~~~
Language: C++

#include<iostrem>
using namespace std;
int main()
{
  string s;
  cin>>s;
  if(s=="SUN")
    cout<<7;
  else if(s=="MON")
    cout<<6;
  else if(s=="TUE")
    cout<<5;
  else if(s=="WED")
    cout<<4;
else if(s=="THU")
    cout<<3;
  else if(s=="FRI")
    cout<<2;
  else if(s=="SAT")
    cout<<1;
  return 0;
}

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

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

int main() {
    string s;
    cin >> s;
    if (s == "SUN" )
        cout << 7;
    if (s == "MON" )
        cout << 6;
    if (s == "TUE" )
        cout << 5;
    if (s == "WED" )
        cout << 4;
    if (s == "THU" )
        cout << 3;
    if (s == "FRI" )
        cout << 2;
    if (s == "SAT" )
        cout << 1;
    }

    return 0;
}

Compiler output:
a.cc:23:5: error: expected unqualified-id before 'return'
   23 |     return 0;
      |     ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main() {
    string s;
    cin >> s;
    switch (s)
    {
    case "SUN":
        cout << 7;
        break;
    case "MON":
        cout << 6;
        break;
    case "TUE":
        cout << 5;
        break;
    case "WED":
        cout << 4;
        break;
    case "THU":
        cout << 3;
        break;
    case "FRI":
        cout << 2;
        break;
    case "SAT":
        cout << 1;
        break;   
    }   
    return 0;
}

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

s=input()
l=['SUN','MON','TUE','WED','THU','FRI','SAT']
l.reverse()
print(l.index(s)+1)


Compiler output:
a.cc:2:4: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |    ^~~~~
a.cc:2:10: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |          ^~~~~
a.cc:2:16: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |                ^~~~~
a.cc:2:22: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |                      ^~~~~
a.cc:2:28: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |                            ^~~~~
a.cc:2:34: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |                                  ^~~~~
a.cc:2:40: warning: multi-character character constant [-Wmultichar]
    2 | l=['SUN','MON','TUE','WED','THU','FRI','SAT']
      |                                        ^~~~~
a.cc:1:1: error: 's' does not name a type
    1 | s=input()
      | ^
Language: C++

#include <iostream>

int main(){
	using namespace std;
	string day;
	int i;
	cin >> day;
	switch (day) {
	case "SUN":i = 7;
		break;
	case "MON":i = 6;
		break;
	case "TUE":i = 5;
		break;
	case "WED":i = 4;
		break;
	case "THU":i = 3;
		break;
	case "FRI":i = 2;
		break;
	case "SAT":i = 1;
		break;
	}
		cout << i << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: switch quantity not an integer
    8 |         switch (day) {
      |                 ^~~
Language: C++

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

int main() {
	string S;
    cin >> S;
    if (S="SUN") {
    	cout << 7 << endl;
    }
    else if (S="MON") {
    	cout << 6 << endl;
    }
    else if (S="TUE") {
    	cout << 5 << endl;
    }
    else if (S="WED") {
    	cout << 4 << endl;
    }
    else if (S="THU") {
    	cout << 3 << endl;
    }
    else if (S="FRI") {
    	cout << 2 << endl;
    }
    else {
    	cout << 1 << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |     if (S="SUN") {
      |         ~^~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:10:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     else if (S="MON") {
      |              ~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:13:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |     else if (S="TUE") {
      |              ~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:16:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |     else if (S="WED") {
      |              ~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:19:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |     else if (S="THU") {
      |              ~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:22:15: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |     else if (S="FRI") {
      |              ~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
Language: C++

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

int main() {
  string A;
  cin >> A;
  if(A = "SAT"){
    cout << 1 << endl;
  }
  if(A = "FRI"){
    cout << 2 << endl;
  }
  if(A = "THU"){
    cout << 3 << endl;
  }
  if(A = "WED"){
    cout << 4 << endl;
  }
  if(A = "TUE"){
    cout << 5 << endl;
  }
  if(A = "MON"){
    cout << 6 << endl;
  }
  if(A = "SUN"){
    cout << 7 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(A = "SAT"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:10:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |   if(A = "FRI"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:13:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |   if(A = "THU"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:16:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   if(A = "WED"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:19:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |   if(A = "TUE"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:22:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |   if(A = "MON"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
a.cc:25:8: error: could not convert 'A.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   25 |   if(A = "SUN"){
      |      ~~^~~~~~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C++

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

int main() {
   string S;
  cin >> S;
  if(S=="SUN"){cout<<7<<endl;}
  if(S=="MON"){cout<<6<<endl;}
  if(S=="TUE"){cout<<5<<endl;}
  if(S=="WED"){cout<<4<<endl;}
  if(S=="THU"){cout<<3<<endl;}
  if(S=="FRI"){cout<<2<<endl;}
  if(S=="SAT"){cout<<1<<endl;}

}
SUN,MON,TUE,WED,THU,FRI,SAT

Compiler output:
a.cc:16:1: error: 'SUN' does not name a type
   16 | SUN,MON,TUE,WED,THU,FRI,SAT
      | ^~~
Language: C++

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

int main()
{
  
  
    stmap<string, int> days = {
      {"SUN", 7},
      {"MON", 6},
      {"TUE", 5},
      {"WED", 4},
      {"THU", 3},
      {"FRI", 2},
      {"SAT", 1}
    };
	
    string S;
    cin >> S;
    decltype(days)::iterator it = days.find(S);
    if (it != days.end()) { 
      cout << it->second << endl;
    }
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'stmap' was not declared in this scope
   10 |     stmap<string, int> days = {
      |     ^~~~~
a.cc:10:17: error: expected primary-expression before ',' token
   10 |     stmap<string, int> days = {
      |                 ^
a.cc:10:19: error: expected primary-expression before 'int'
   10 |     stmap<string, int> days = {
      |                   ^~~
a.cc:22:14: error: 'days' was not declared in this scope
   22 |     decltype(days)::iterator it = days.find(S);
      |              ^~~~
a.cc:22:30: error: expected initializer before 'it'
   22 |     decltype(days)::iterator it = days.find(S);
      |                              ^~
a.cc:23:9: error: 'it' was not declared in this scope; did you mean 'int'?
   23 |     if (it != days.end()) {
      |         ^~
      |         int
Language: C++

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

int main()
{
  
  {
    map<string, int> days = {
      {"SUN", 7},
      {"MON", 6},
      {"TUE", 5},
      {"WED", 4},
      {"THU", 3},
      {"FRI", 2},
      {"SAT", 1}
    };
	
    string S;
    cin >> S;
    decltype(days)::iterator it = days.find(S);
    if (it != days.end()) { 
      cout << it->second << endl;
    }
    return 0;
  }

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

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

int main()
{
  
  {
    stmap<string, int> days = {
      {"SUN", 7},
      {"MON", 6},
      {"TUE", 5},
      {"WED", 4},
      {"THU", 3},
      {"FRI", 2},
      {"SAT", 1}
    };
	
    string S;
    cin >> S;
    decltype(days)::iterator it = days.find(S);
    if (it != days.end()) { 
      cout << it->second << endl;
    }
    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'stmap' was not declared in this scope
   10 |     stmap<string, int> days = {
      |     ^~~~~
a.cc:10:17: error: expected primary-expression before ',' token
   10 |     stmap<string, int> days = {
      |                 ^
a.cc:10:19: error: expected primary-expression before 'int'
   10 |     stmap<string, int> days = {
      |                   ^~~
a.cc:22:14: error: 'days' was not declared in this scope
   22 |     decltype(days)::iterator it = days.find(S);
      |              ^~~~
a.cc:22:30: error: expected initializer before 'it'
   22 |     decltype(days)::iterator it = days.find(S);
      |                              ^~
a.cc:23:9: error: 'it' was not declared in this scope; did you mean 'int'?
   23 |     if (it != days.end()) {
      |         ^~
      |         int
a.cc:27:4: error: expected '}' at end of input
   27 |   }
      |    ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C++

#include<iostream>
#include<String>
#include<Map>
using namespace std;

int main() {
	map<string, int> days;
	days["SUN"] = 7;
	days["MON"] = 6;
	days["TUE"] = 5;
	days["WED"] = 4;
	days["THU"] = 3;
	days["FRI"] = 2;
	days["SAT"] = 1;

	string S;
	cin >> S;
	cout << days["S"] << endl;
	return 0;
}

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

#include <iostream>
using namespace std;
int main(void){
int a,sun=7;
cin>>a;
if(a==SUN) cout<<sun-7<<endl;
else if(a==MON) cout<<sun-6<<endl;
else if(a==TUE) cout<<sun-5<<endl;
else if(a==WED) cout<<sun-4<<endl;
else if(a==THU) cout<<sun-3<<endl;
else if(a==FRI) cout<<sun-2<<endl;
else if(a==SAT) cout<<sun-1<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'SUN' was not declared in this scope
    6 | if(a==SUN) cout<<sun-7<<endl;
      |       ^~~
a.cc:7:12: error: 'MON' was not declared in this scope
    7 | else if(a==MON) cout<<sun-6<<endl;
      |            ^~~
a.cc:8:12: error: 'TUE' was not declared in this scope
    8 | else if(a==TUE) cout<<sun-5<<endl;
      |            ^~~
a.cc:9:12: error: 'WED' was not declared in this scope
    9 | else if(a==WED) cout<<sun-4<<endl;
      |            ^~~
a.cc:10:12: error: 'THU' was not declared in this scope
   10 | else if(a==THU) cout<<sun-3<<endl;
      |            ^~~
a.cc:11:12: error: 'FRI' was not declared in this scope
   11 | else if(a==FRI) cout<<sun-2<<endl;
      |            ^~~
a.cc:12:12: error: 'SAT' was not declared in this scope
   12 | else if(a==SAT) cout<<sun-1<<endl;
      |            ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()

int main(){
  string s;
  int ans =0;
  cin >> s;
  switch (s) {
    case "SUN": ans=7; break;
    case "MON": ans=6; break;
    case "TUE": ans=5; break;
    case "WED": ans=4; break;
    case "THU": ans=3; break;
    case "FRI": ans=2; break;
    case "SAT": ans=1; break;
  }
  cout << ans << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()

int main(){
  string s;
  int ans =0;
  cin >> s;
  switch (s) {
    case "SUN": ans=7;
    case "MON": ans=6;
    case "TUE": ans=5;
    case "WED": ans=4;
    case "THU": ans=3;
    case "FRI": ans=2;
    case "SAT": ans=1;
  }
  cout << ans << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()

int main(){
  string s;
  ans =0;
  cin >> s;
  switch (s) {
    case "SUN": ans=7;
    case "MON": ans=6;
    case "TUE": ans=5;
    case "WED": ans=4;
    case "THU": ans=3;
    case "FRI": ans=2;
    case "SAT": ans=1;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   14 |   ans =0;
      |   ^~~
      |   abs
a.cc:16:11: error: switch quantity not an integer
   16 |   switch (s) {
      |           ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
#define int ll
#define double long double
void YN(bool flg){cout<<(flg?"YES":"NO")<<endl;}
void Yn(bool flg){cout<<(flg?"Yes":"No")<<endl;}
void yn(bool flg){cout<<(flg?"yes":"no")<<endl;}
#define SORT(a) sort(a.begin(),a.end())
#define REVERSE(a) reverse(a.begin(),a.end())
#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 out(n) cout << n << endl;
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD = 1000000007;
const long long INF = 10e10;
const double PI = acos(-1.0);
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; }
template<class T>auto MAX(const T& a) { return *max_element(a.begin(),a.end()); }
template<class T>auto MIN(const T& a) { return *min_element(a.begin(),a.end()); }
template<class T, class U>U SUM(const T& a, const U& v) { return accumulate(a.begin(),a.end(), v); }
template<class T, class U>int LOWER(const T& a, const U& v) { return lower_bound(a.begin(),a.end(), v) - a.begin(); }
template<class T, class U>int UPPER(const T& a, const U& v) { return upper_bound(a.begin(),a.end(), v) - a.begin(); }
int GCD(int a, int b) { return b ? GCD(b, a%b) : a; }
int LCM(int a, int b) { int g = GCD(a, b); return a / g * b; }
int POW(int a, int n) { int r = 1; while (n > 0) { if (n & 1)r *= a; a *= a; n /= 2; }return r; }
int isPrime(int n){if(n<2){return 0;}for(int i=2; i*i<=n; i++){if(n%i==0){return 0;}}return 1;}
/*素因数分解*/map< int64_t, int >prime_factor(int64_t n){map< int64_t, int > ret;for(int64_t i = 2; i * i <= n; i++) {while(n % i == 0) {ret[i]++;n /= i;}}if(n != 1) ret[n] = 1;return ret;}
/*約数列挙*/vector<int> getDivisor(int n){vector<int> v; for(int i=1; i*i<=n; i++){if(n%i==0){v.push_back(i);if(i!=n/i){v.push_back(n/i);}}}sort(v.begin(),v.end()); return v;}
//----------------ライブラリとか----------------

signed main(){
    cin.tie(0);
    ios::sync_with_stdio(0);
    cout<<fixed<<setprecision(15);

    istring s; cin >> s;
    if(s=="SUN") out(7);
    if(s=="MON") out(6);
    if(s=="TUE") out(5);
    if(s=="WED") out(4);
    if(s=="THU") out(3);
    if(s=="FRI") out(2);
    if(s=="SAT") out(1);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:5: error: 'istring' was not declared in this scope; did you mean 'isprint'?
   41 |     istring s; cin >> s;
      |     ^~~~~~~
      |     isprint
a.cc:41:23: error: 's' was not declared in this scope
   41 |     istring s; cin >> s;
      |                       ^
Language: C++

#include <bits/stdc++.h>
int main(){
  int N;
  char S[10000];
  char Alph[26]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  scanf("%d␣%s",&N,S);
  for(int i=0;i++;i < sizeof(S)/sizeof(*S)){
    for(int I=0;I++;I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  std::cout<<S;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '}' token
   13 |         S[i] = Alph[I+N-26]
      |                            ^
      |                            ;
   14 |         }else{S[i] = Alph[I+N]}
      |         ~                   
a.cc:14:31: error: expected ';' before '}' token
   14 |         }else{S[i] = Alph[I+N]}
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
int main(){
  int N;
  char S[10000];
  char Alph[26]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  scanf("%d␣%s",&N,S);
  for(int i=0;i++;i < sizeof(S)/sizeof(*S)){
    for(int I=0;I++;I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  cout<<S;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '}' token
   13 |         S[i] = Alph[I+N-26]
      |                            ^
      |                            ;
   14 |         }else{S[i] = Alph[I+N]}
      |         ~                   
a.cc:14:31: error: expected ';' before '}' token
   14 |         }else{S[i] = Alph[I+N]}
      |                               ^
      |                               ;
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout<<S;
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
int main(){
  int N;
  char S[10000];
  char Alph[26]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  scanf("%d␣%s",&N,S);
  for(int i=0;i++;(i<10000)&&(S[i]!=null)){
    for(int I=0;I++;I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  printf(S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:37: error: 'null' was not declared in this scope
    7 |   for(int i=0;i++;(i<10000)&&(S[i]!=null)){
      |                                     ^~~~
a.cc:13:28: error: expected ';' before '}' token
   13 |         S[i] = Alph[I+N-26]
      |                            ^
      |                            ;
   14 |         }else{S[i] = Alph[I+N]}
      |         ~                   
a.cc:14:31: error: expected ';' before '}' token
   14 |         }else{S[i] = Alph[I+N]}
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
int main(){
  int N;
  char S[10000];
  char Alph[26]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
  scanf("%d␣%s",&N,S);
  for(int i=0;i++;(i<10000)&&(S[i]!=nullptr)){
    for(int I=0;I++;I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  printf(S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:35: error: invalid operands of types 'char' and 'std::nullptr_t' to binary 'operator!='
    7 |   for(int i=0;i++;(i<10000)&&(S[i]!=nullptr)){
      |                               ~~~~^~~~~~~~~
a.cc:13:28: error: expected ';' before '}' token
   13 |         S[i] = Alph[I+N-26]
      |                            ^
      |                            ;
   14 |         }else{S[i] = Alph[I+N]}
      |         ~                   
a.cc:14:31: error: expected ';' before '}' token
   14 |         }else{S[i] = Alph[I+N]}
      |                               ^
      |                               ;
Language: C++

#include <bits/stdc++.h>
int main(){
  int N;
  char S[10000];
  char Alph[26]= ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
  scanf("%d␣%s",&N,S);
  for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
    for(I=0,I++,I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  printf(S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected identifier before 'A'
    5 |   char Alph[26]= ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
      |                   ^~~
a.cc:5:22: error: expected ']' before ',' token
    5 |   char Alph[26]= ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
      |                      ^
      |                      ]
a.cc: In lambda function:
a.cc:5:22: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:5:18: error: array must be initialized with a brace-enclosed initializer
    5 |   char Alph[26]= ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
      |                  ^~~~
a.cc:5:23: error: expected unqualified-id before 'B'
    5 |   char Alph[26]= ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
      |                       ^~~
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
      |       ^
a.cc:18:12: error: expected ')' before ';' token
   18 |   printf(S);
      |            ^
      |            )
a.cc:7:6: note: to match this '('
    7 |   for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
      |      ^
Language: C++

int main(){
  int N;
  char[10000] S;
  char[26] Alph = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z];
  scanf("%d␣%s",&N,S);
  for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
    for(I=0,I++,I<26)
    {
      if(Alph[I]==S[i])
      {
        if(26<I+N){
        S[i] = Alph[I+N-26]
        }else{S[i] = Alph[I+N]}
      }
    }  
  };
  printf(S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:8: error: expected identifier before numeric constant
    3 |   char[10000] S;
      |        ^~~~~
a.cc:3:8: error: expected ']' before numeric constant
    3 |   char[10000] S;
      |        ^~~~~
      |        ]
a.cc:3:7: error: structured binding declaration cannot have type 'char'
    3 |   char[10000] S;
      |       ^
a.cc:3:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:3:7: error: empty structured binding declaration
a.cc:3:15: error: expected initializer before 'S'
    3 |   char[10000] S;
      |               ^
a.cc:4:8: error: expected identifier before numeric constant
    4 |   char[26] Alph = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z];
      |        ^~
a.cc:4:8: error: expected ']' before numeric constant
    4 |   char[26] Alph = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z];
      |        ^~
      |        ]
a.cc:4:7: error: structured binding declaration cannot have type 'char'
    4 |   char[26] Alph = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z];
      |       ^
a.cc:4:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:4:7: error: empty structured binding declaration
a.cc:4:12: error: expected initializer before 'Alph'
    4 |   char[26] Alph = [A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z];
      |            ^~~~
a.cc:5:20: error: 'S' was not declared in this scope
    5 |   scanf("%d␣%s",&N,S);
      |                    ^
a.cc:5:3: error: 'scanf' was not declared in this scope
    5 |   scanf("%d␣%s",&N,S);
      |   ^~~~~
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
      |       ^
a.cc:17:3: error: 'printf' was not declared in this scope
   17 |   printf(S);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:17:12: error: expected ')' before ';' token
   17 |   printf(S);
      |            ^
      |            )
a.cc:6:6: note: to match this '('
    6 |   for(i=0,i++,(i<10000)&&(S[i]!=nullptr)){
      |      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[3];
    cin>>a;
    if(a=='SUN')
    printf("7");
    if(a=='MON')
    printf("6");
    if(a=='TUE')
    printf("5");
    if(a=='WED')
    printf("4");
    if(a=='TUE')
    printf("3");
    if(a=='FRI')
    printf("2");
    if(a=='SAT')
    printf("1");
	return 0;
}

Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     if(a=='SUN')
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     if(a=='MON')
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     if(a=='TUE')
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     if(a=='WED')
      |           ^~~~~
a.cc:15:11: warning: multi-character character constant [-Wmultichar]
   15 |     if(a=='TUE')
      |           ^~~~~
a.cc:17:11: warning: multi-character character constant [-Wmultichar]
   17 |     if(a=='FRI')
      |           ^~~~~
a.cc:19:11: warning: multi-character character constant [-Wmultichar]
   19 |     if(a=='SAT')
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if(a=='SUN')
      |        ~^~~~~~~
a.cc:9:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if(a=='MON')
      |        ~^~~~~~~
a.cc:11:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(a=='TUE')
      |        ~^~~~~~~
a.cc:13:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |     if(a=='WED')
      |        ~^~~~~~~
a.cc:15:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(a=='TUE')
      |        ~^~~~~~~
a.cc:17:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(a=='FRI')
      |        ~^~~~~~~
a.cc:19:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     if(a=='SAT')
      |        ~^~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  int n;
  cin >> s;
    if (s=="SUN"){n=7}
  cout<< n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '}' token
    8 |     if (s=="SUN"){n=7}
      |                      ^
      |                      ;
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  int n;
  cin >> s;
  switch(s){
    case "SUN": n=7; break;
    case "SAT": n=1; break;
    case "MON": n=6; break;
    case "TUE": n=5; break;
    case "WEN": n=4; break;
    case "THU": n=3; break;
    case "FRI": n=2; break;
  }
  cout<< n;
  return 0;
}

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

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  int n;
  cin >> s;
  switch(s){
      		case: "SUN" n=7; break;
            case: "SAT" n=1; break;
            case: "MON" n=6; break;
            case: "TUE" n=5; break;
            case: "WEN" n=4; break;
            case: "THU" n=3; break;
      		case: "FRI" n=2; break;
  }
  cout<< n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: switch quantity not an integer
    8 |   switch(s){
      |          ^
a.cc:9:21: error: expected primary-expression before ':' token
    9 |                 case: "SUN" n=7; break;
      |                     ^
a.cc:9:28: error: expected ';' before 'n'
    9 |                 case: "SUN" n=7; break;
      |                            ^~
      |                            ;
a.cc:10:17: error: expected primary-expression before ':' token
   10 |             case: "SAT" n=1; break;
      |                 ^
a.cc:10:24: error: expected ';' before 'n'
   10 |             case: "SAT" n=1; break;
      |                        ^~
      |                        ;
a.cc:11:17: error: expected primary-expression before ':' token
   11 |             case: "MON" n=6; break;
      |                 ^
a.cc:11:24: error: expected ';' before 'n'
   11 |             case: "MON" n=6; break;
      |                        ^~
      |                        ;
a.cc:12:17: error: expected primary-expression before ':' token
   12 |             case: "TUE" n=5; break;
      |                 ^
a.cc:12:24: error: expected ';' before 'n'
   12 |             case: "TUE" n=5; break;
      |                        ^~
      |                        ;
a.cc:13:17: error: expected primary-expression before ':' token
   13 |             case: "WEN" n=4; break;
      |                 ^
a.cc:13:24: error: expected ';' before 'n'
   13 |             case: "WEN" n=4; break;
      |                        ^~
      |                        ;
a.cc:14:17: error: expected primary-expression before ':' token
   14 |             case: "THU" n=3; break;
      |                 ^
a.cc:14:24: error: expected ';' before 'n'
   14 |             case: "THU" n=3; break;
      |                        ^~
      |                        ;
a.cc:15:21: error: expected primary-expression before ':' token
   15 |                 case: "FRI" n=2; break;
      |                     ^
a.cc:15:28: error: expected ';' before 'n'
   15 |                 case: "FRI" n=2; break;
      |                            ^~
      |                            ;
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
string s;
cin >> s;
cout << "\n";
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
    8 |   return 0
      |           ^
      |           ;
    9 | }
      | ~
Language: C++

#include <iostream>
#include <string>
using namespace std;
string s;
cin >> s;
cout << "\n";

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> s;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << "\n";
      | ^~~~
Language: C++

int main() {
  string S;
  scanf("%d", &S);
  printf("%d\n", S);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string S;
      |   ^~~~~~
a.cc:3:16: error: 'S' was not declared in this scope
    3 |   scanf("%d", &S);
      |                ^
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d", &S);
      |   ^~~~~
a.cc:4:3: error: 'printf' was not declared in this scope
    4 |   printf("%d\n", S);
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
Language: Java

import java.util.Scanner;

class Unchi {
  public static void main(String[] args) {

      Scanner S = new Scanner(System.in);
      int h;

      if(S == "SUN"){ System.out.print("7"); }
      else if(S == "MON"){ System.out.print("6"); }
      else if(S == "TUE"){ System.out.print("5"); }
      else if(S == "WED"){ System.out.print("4"); }
      else if(S == "THU"){ System.out.print("3"); }
      else if(S == "FRI"){ System.out.print("2"); }
 	  else if(S == "SAT"){ System.out.print("1"); }
    
  }
}

Compiler output:
Main.java:9: error: incomparable types: Scanner and String
      if(S == "SUN"){ System.out.print("7"); }
           ^
Main.java:10: error: incomparable types: Scanner and String
      else if(S == "MON"){ System.out.print("6"); }
                ^
Main.java:11: error: incomparable types: Scanner and String
      else if(S == "TUE"){ System.out.print("5"); }
                ^
Main.java:12: error: incomparable types: Scanner and String
      else if(S == "WED"){ System.out.print("4"); }
                ^
Main.java:13: error: incomparable types: Scanner and String
      else if(S == "THU"){ System.out.print("3"); }
                ^
Main.java:14: error: incomparable types: Scanner and String
      else if(S == "FRI"){ System.out.print("2"); }
                ^
Main.java:15: error: incomparable types: Scanner and String
 	  else if(S == "SAT"){ System.out.print("1"); }
 	            ^
7 errors
Language: C++

#include<stdio.h>

#define s(a) scanf("%s", a)
#define i(a) if(s[0] == "a")
#define e(a) else if(s[0] == "a")
#define p(a) puts("a")

int main() {
  char s[10];
  s(a);
  
  i(S) {
    i(A) {
      p(1);
    }
    else {
      p(7);
    }
  }
  e(M) {
    p(6);
  }
  e(T) {
    i(U) {
      p(5);
    }
    e(H) {
      p(3);
    }
  }
  e(W) {
    p(4);
  }
  else {
    p(2);
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'a' was not declared in this scope
   10 |   s(a);
      |     ^
a.cc:3:26: note: in definition of macro 's'
    3 | #define s(a) scanf("%s", a)
      |                          ^
a.cc:4:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    4 | #define i(a) if(s[0] == "a")
      |                 ~~~~~^~~~~~
a.cc:12:3: note: in expansion of macro 'i'
   12 |   i(S) {
      |   ^
a.cc:4:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    4 | #define i(a) if(s[0] == "a")
      |                 ~~~~~^~~~~~
a.cc:13:5: note: in expansion of macro 'i'
   13 |     i(A) {
      |     ^
a.cc:5:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | #define e(a) else if(s[0] == "a")
      |                      ~~~~~^~~~~~
a.cc:20:3: note: in expansion of macro 'e'
   20 |   e(M) {
      |   ^
a.cc:5:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | #define e(a) else if(s[0] == "a")
      |                      ~~~~~^~~~~~
a.cc:23:3: note: in expansion of macro 'e'
   23 |   e(T) {
      |   ^
a.cc:4:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    4 | #define i(a) if(s[0] == "a")
      |                 ~~~~~^~~~~~
a.cc:24:5: note: in expansion of macro 'i'
   24 |     i(U) {
      |     ^
a.cc:5:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | #define e(a) else if(s[0] == "a")
      |                      ~~~~~^~~~~~
a.cc:27:5: note: in expansion of macro 'e'
   27 |     e(H) {
      |     ^
a.cc:5:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 | #define e(a) else if(s[0] == "a")
      |                      ~~~~~^~~~~~
a.cc:31:3: note: in expansion of macro 'e'
   31 |   e(W) {
      |   ^
Language: C++

namespace std;
 
int main{
  string S;
  cin>>S;
  
  switch(S) {
    case "SUN":
  	cout<<0;
  	break;
    case "MON":
  	cout<<6;
  	break;    
    case "TUE":
  	cout<<5;
  	break;    
    case "WED":
  	cout<<4;
  	break;    
    case "THU":
  	cout<<3;
  	break;    
    case "FRI":
  	cout<<2;
  	break;    
    case "SAT":
  	cout<<1;
  	break;
  }
}

Compiler output:
a.cc:1:14: error: expected '{' before ';' token
    1 | namespace std;
      |              ^
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:4:10: error: expected '}' before 'S'
    4 |   string S;
      |          ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>S;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'switch'
    7 |   switch(S) {
      |   ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

namespace std;
 
int main{
  string S;
  cin>>S;
  
  switch(S){
    case "SUN":
  	cout<<0;
  	break;
    case "MON":
  	cout<<6;
  	break;    
    case "TUE":
  	cout<<5;
  	break;    
    case "WED":
  	cout<<4;
  	break;    
    case "THU":
  	cout<<3;
  	break;    
    case "FRI":
  	cout<<2;
  	break;    
    case "SAT":
  	cout<<0;
  	break;
  }
  return 0;
}

Compiler output:
a.cc:1:14: error: expected '{' before ';' token
    1 | namespace std;
      |              ^
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string S;
      |   ^~~~~~
a.cc:4:10: error: expected '}' before 'S'
    4 |   string S;
      |          ^
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin>>S;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'switch'
    7 |   switch(S){
      |   ^~~~~~
a.cc:30:3: error: expected unqualified-id before 'return'
   30 |   return 0;
      |   ^~~~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include <iostudio>

namespace std;

int main{
  string S;
  cin>>S;
  
  switch(S){
    case "SUN":
  	cout<<0;
  	break;
    case "MON":
  	cout<<6;
  	break;    
    case "TUE":
  	cout<<5;
  	break;    
    case "WED":
  	cout<<4;
  	break;    
    case "THU":
  	cout<<3;
  	break;    
    case "FRI":
  	cout<<2;
  	break;    
    case "SAT":
  	cout<<0;
  	break;
  }
  return 0;
}
  

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string s;
    cin>>s;
    
    if (s=="MON"){ cout<<6<<endl;}
    
    else if (s=="TUE"){ cout<<5<<endl;
    }
    else if (s=="WED"){ cout<<4<<endl;
    }    
    else if (s=="THU"){ cout<<3<<endl;
    }
    else if (s=="FRI"){ cout<<2<<endl;
    }
    else  (s=="SAT"){ cout<<1<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected ';' before '{' token
   18 |     else  (s=="SAT"){ cout<<1<<endl;
      |                     ^
      |                     ;
a.cc:18:13: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   18 |     else  (s=="SAT"){ cout<<1<<endl;
      |           ~~^~~~~~~~
In file included 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/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C++

#include "pch.h"
#include <iostream>
#include <string>
int main()
{
	std::string S;
	std::cin >> S;
	if (S == "SUN") {
		std::cout << "7" << std::endl;
	}
	if (S == "MON") {
		std::cout << "6" << std::endl;
	}
	if (S == "TUE") {
		std::cout << "5" << std::endl;
	}
	if (S == "WED") {
		std::cout << "4" << std::endl;
	}
	if (S == "THU") {
		std::cout << "3" << std::endl;
	}
	if (S == "FRI") {
		std::cout << "2" << std::endl;
	}
	if (S == "SAT") {
		std::cout << "1" << std::endl;
	}
}

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

#include <iostream>
using namespace std;
int main(void){
    
    string S;
    cin >> S;
    
    if(S = "SUN") cout << 7 << endl;
    if(S = "MON") cout << 6 << endl;
    if(S = "TUE") cout << 5 << endl;
    if(S = "WED") cout << 4 << endl;
    if(S = "THU") cout << 3 << endl;
    if(S = "FRI") cout << 2 << endl;
    if(S = "SAT") cout << 1 << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    8 |     if(S = "SUN") cout << 7 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:9:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |     if(S = "MON") cout << 6 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:10:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   10 |     if(S = "TUE") cout << 5 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:11:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |     if(S = "WED") cout << 4 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:12:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |     if(S = "THU") cout << 3 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:13:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   13 |     if(S = "FRI") cout << 2 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>
a.cc:14:10: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |     if(S = "SAT") cout << 1 << endl;
      |        ~~^~~~~~~
      |          |
      |          std::__cxx11::basic_string<char>