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

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

int main(){
  string s;
  cin >> s;

  enum week{
    SUN,
    MON,
    TUE,
    WED,
    THU,
    FRI,
    SAT
  };

  

  switch(s){
    case "SUN":
      cout << 7 << endl;
      break;
    case "MON":
      cout << 6 << endl;
      break;
    case "TUE":
      cout << 5 << endl;
      break;
    case "WED":
      cout << 4 << endl;
      break;
    case "THU":
      cout << 3 << endl;
      break;
    case "FRI":
      cout << 2 << endl;
      break;
    case "SAT":
      cout << 1 << endl;
      break;
  }
}


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

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

int main(){
  string s;
  cin >> s;

  switch(s){
    case "SUN":
      cout << 7 << endl;
      break;
    case "MON":
      cout << 6 << endl;
      break;
    case "TUE":
      cout << 5 << endl;
      break;
    case "WED":
      cout << 4 << endl;
      break;
    case "THU":
      cout << 3 << endl;
      break;
    case "FRI":
      cout << 2 << endl;
      break;
    case "SAT":
      cout << 1 << endl;
      break;
  }
}


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

#include <bits/stdc++.h>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<string.h>
using namespace std;
#define pb push_back
#define all(v) v. begin(),v. end()
#define  rep(i,n,v) for(i=n;i<v;i++)
#define per(i,n,v) for(i=n;i>v;i--)
#define ff first 
#define ss second 
#define pp pair<ll,ll>
#define ll  long long
#define endl '\n'
void solve()
{
  ll n, a,m=0,b=1, c,k=0, i, j,l=1e9+7;
  string s, r, y;
  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 cout<<1;
}
int main()
{
 ios_base::sync_with_stdio(false);
  cin. tie(0);cout. tie(0);
    ll t=1;
 //  cin>>t;
    while(t--)
    {
      solve();
    }
    return 0;
}
Comment in

Compiler output:
a.cc:42:1: error: 'Comment' does not name a type
   42 | Comment in
      | ^~~~~~~
Language: C++

#include<bits/stdc++>
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;
}

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

#include<bits/stdc++>
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;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: 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")Day=7;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:9:11: 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")Day=6;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:10:11: 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")Day=5;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:11:11: 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")Day=4;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:12:11: 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")Day=3;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:13:11: 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")Day=2;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:14:11: 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")Day=1;
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C++

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


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

#include <bits/stdc++.h>

using namespace std;

int main()
{
  map<string , int> mp = {
    {"SUN", 7}
    {"MON", 6}
    {"TUE", 5}
    {"WED", 4}
    {"THU", 3}
    {"FRI", 2}
    {"SAT", 1}};
  string s; cin >> s;
  cout << mp[s] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '}' before '{' token
    9 |     {"MON", 6}
      |     ^
a.cc:7:26: note: to match this '{'
    7 |   map<string , int> mp = {
      |                          ^
a.cc:9:5: error: expected ',' or ';' before '{' token
    9 |     {"MON", 6}
      |     ^
a.cc:10:14: error: expected ';' before '}' token
   10 |     {"TUE", 5}
      |              ^
      |              ;
a.cc:11:14: error: expected ';' before '}' token
   11 |     {"WED", 4}
      |              ^
      |              ;
a.cc:12:14: error: expected ';' before '}' token
   12 |     {"THU", 3}
      |              ^
      |              ;
a.cc:13:14: error: expected ';' before '}' token
   13 |     {"FRI", 2}
      |              ^
      |              ;
a.cc:14:14: error: expected ';' before '}' token
   14 |     {"SAT", 1}};
      |              ^
      |              ;
a.cc: At global scope:
a.cc:15:13: error: 'cin' does not name a type
   15 |   string s; cin >> s;
      |             ^~~
a.cc:16:3: error: 'cout' does not name a type
   16 |   cout << mp[s] << endl;
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'return'
   17 |   return 0;
      |   ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  map<string , int> mp = {
    {SUN, 7}
    {MON, 6}
    {TUE, 5}
    {WED, 4}
    {THU, 3}
    {FRI, 2}
    {SAT, 1}};
  string s; cin >> s;
  cout << mp[s] << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'SUN' was not declared in this scope
    8 |     {SUN, 7}
      |      ^~~
a.cc:9:5: error: expected '}' before '{' token
    9 |     {MON, 6}
      |     ^
a.cc:7:26: note: to match this '{'
    7 |   map<string , int> mp = {
      |                          ^
a.cc:9:5: error: could not convert '{{<expression error>, 7}}' from '<brace-enclosed initializer list>' to 'std::map<std::__cxx11::basic_string<char>, int>'
    9 |     {MON, 6}
      |     ^
      |     |
      |     <brace-enclosed initializer list>
a.cc:9:5: error: expected ',' or ';' before '{' token
a.cc:10:6: error: 'TUE' was not declared in this scope
   10 |     {TUE, 5}
      |      ^~~
a.cc:11:6: error: 'WED' was not declared in this scope
   11 |     {WED, 4}
      |      ^~~
a.cc:12:6: error: 'THU' was not declared in this scope
   12 |     {THU, 3}
      |      ^~~
a.cc:13:6: error: 'FRI' was not declared in this scope
   13 |     {FRI, 2}
      |      ^~~
a.cc:14:6: error: 'SAT' was not declared in this scope
   14 |     {SAT, 1}};
      |      ^~~
a.cc: At global scope:
a.cc:15:13: error: 'cin' does not name a type
   15 |   string s; cin >> s;
      |             ^~~
a.cc:16:3: error: 'cout' does not name a type
   16 |   cout << mp[s] << endl;
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'return'
   17 |   return 0;
      |   ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

import java.util.Scanner;

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

        switch(sc.next){
            case "SUN":
                System.out.println(7);

            case "MON":
                System.out.println(6);

            case "TUE":
                System.out.println(5);

            case "WED":
                System.out.println(4);

            case "THU":
                System.out.println(3);

            case "FRI":
                System.out.println(2);

            case "SAT":
                System.out.println(1);
        }


    }
}


Compiler output:
Main.java:7: error: cannot find symbol
        switch(sc.next){
                 ^
  symbol:   variable next
  location: variable sc of type Scanner
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pi 2*asin(1.0)


//template functions
/////////////////////////
long Comb(long N,long M){// nCm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
for(long i=M;i>0;i--){
    ans=ans/i;
}
return ans;
}
long Perm(long N,long M){// nPm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
return ans;
}
long GCM(long A,long B){
            long W,r;
    if(A<B){

        W=B;
        B=A;
        A=W;
    }
    while(A%B!=0){
        r=A%B;
        A=B;
        B=r;
    }
    return B;
}
long LCM(long A,long B){
    return (A*B)/GCM(A,B);
}


long upDiv(long a,long b){
  return (a+b-1)/b;
}

/////////////////////////


//Answer


int main() {

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:59:5: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   59 | if(S="MON"){
      |    ~^~~~~~
      |     |
      |     std::__cxx11::basic_string<char>
a.cc:61:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   61 | }else if(S="TUE"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:63:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   63 | }else if(S="WED"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:65:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   65 | }else if(S="THU"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:67:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   67 | }else if(S="FRI"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:69:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   69 | }else if(S="SAT"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pi 2*asin(1.0)


//template functions
/////////////////////////
long Comb(long N,long M){// nCm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
for(long i=M;i>0;i--){
    ans=ans/i;
}
return ans;
}
long Perm(long N,long M){// nPm
long ans=1;
for(long i=N;i>N-M;i--){
    ans=ans*i;
}
return ans;
}
long GCM(long A,long B){
            long W,r;
    if(A<B){

        W=B;
        B=A;
        A=W;
    }
    while(A%B!=0){
        r=A%B;
        A=B;
        B=r;
    }
    return B;
}
long LCM(long A,long B){
    return (A*B)/GCM(A,B);
}
long minVec(vector<long> data){
    long min=data[0];
    for(long i=1;i<data.size();i++){
        if(min>data[i]){
            min=data[i];
        }
    }
    return min;
}
long maxVec(vector<long> data){
    long max=data[0];
    for(long i=1;i<data.size();i++){
        if(max<data[i]){
            max=data[i];
        }
    }
    return max;
}
long sumVec(vector<long> v){
  long sum = 0;
  for(long i=0; i<v.size(); i++){
    sum += v[i];
  }
  return sum;
}
long upDiv(long a,long b){
  return (a+b-1)/b;
}

/////////////////////////


//Answer


int main() {

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


}


Compiler output:
a.cc: In function 'int main()':
a.cc:81:5: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   81 | if(S="MON"){
      |    ~^~~~~~
      |     |
      |     std::__cxx11::basic_string<char>
a.cc:83:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   83 | }else if(S="TUE"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:85:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   85 | }else if(S="WED"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:87:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   87 | }else if(S="THU"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:89:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   89 | }else if(S="FRI"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
a.cc:91:11: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   91 | }else if(S="SAT"){
      |          ~^~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{	int i;
	char s[4];
	char t[7][4]={"SAT","FRI","TUS","WES","TUS","MON","SUN"};
	scanf("%s",s);
	
	for(i=0; i<7; i++){
		if(strcmp(s,t)==0){
		printf("%d",i+1);
		getch();
		return 0;
		}
	}
	

	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:10:29: error: passing argument 2 of 'strcmp' from incompatible pointer type [-Wincompatible-pointer-types]
   10 |                 if(strcmp(s,t)==0){
      |                             ^
      |                             |
      |                             char (*)[4]
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'char (*)[4]'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
main.c:12:17: error: implicit declaration of function 'getch'; did you mean 'getc'? [-Wimplicit-function-declaration]
   12 |                 getch();
      |                 ^~~~~
      |                 getc
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		int n = scn.nextInt();
		String s = scn.next();
      	byte[] asc;
      	asc = s.getBytes("US-ASCII");
      	for (int i=0; i<s.length(); i++) {
        	acs[i] = acs[i] + n;
           if(asc[i]>90) asc[i] = acs[i] - 26;
        }
      	for (int i=0; i<s.length(); i++) {
            System.out.print(asc[i]);
        }
	}
}


Compiler output:
Main.java:11: error: cannot find symbol
        	acs[i] = acs[i] + n;
        	^
  symbol:   variable acs
  location: class Main
Main.java:11: error: cannot find symbol
        	acs[i] = acs[i] + n;
        	         ^
  symbol:   variable acs
  location: class Main
Main.java:12: error: cannot find symbol
           if(asc[i]>90) asc[i] = acs[i] - 26;
                                  ^
  symbol:   variable acs
  location: class Main
3 errors
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <functional>
#include <string>
#include <cmath>  //sqrt 
#include <iomanip> //setprecision


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


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double ld;
typedef pair<int,int> pii;
typedef map<int,int> mii;
typedef vector<int>vi;
#define pb push_back
#define sc(n) scanf("%d",&n)
#define lsc(n) scanf("%lld",&n)
#define all(x) x.begin(),x.end()
#define rep(i,n) for(i=0LL;i<n;i++)
#define rep1(i,n) for(i=1;i<=n;i++)
#define rev(i,n) for(i=n-1;i>=0;i--)
#define rev1(i,n) for(i=n;i>0;i--)
#define in insert
#define IT ::iterator
#define F first
#define S second
#define pr(n) printf("%d\n",n)
#define lpr(n) printf("%lld\n",n);


void solve()
{
    string v[SSS]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
    string s;
    cin >> s;
    int i;
    rep(i,7)
    {
        if(v[i]==s)
        {
            cout << 7-i ;
            break;
        }
    }
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int tc=1;
   // cin >> tc;
    while(tc--)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:26:14: error: 'SSS' was not declared in this scope
   26 |     string v[SSS]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |              ^~~
a.cc:32:12: error: 'v' was not declared in this scope
   32 |         if(v[i]==s)
      |            ^
Language: C++

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

int main() {
  str 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 if(S == "SAT"){
    cout << 1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'str' was not declared in this scope; did you mean 'std'?
    5 |   str S;
      |   ^~~
      |   std
a.cc:6:10: error: 'S' was not declared in this scope
    6 |   cin >> S;
      |          ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#include <numeric>
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;}
  
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected '}' before 'else'
   18 |   cout << 2;else if(s == "SAT") {
      |             ^~~~
a.cc:17:34: note: to match this '{'
   17 |   cout << 3;}else if(s == "FRI") {
      |                                  ^
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#include <numeric>
using namespace std;

 int main() {
string 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;}
  
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected '}' before 'else'
   17 |   cout << 2;else if(s == "SAT") {
      |             ^~~~
a.cc:16:34: note: to match this '{'
   16 |   cout << 3;}else if(s == "FRI") {
      |                                  ^
Language: Java

import java.util.Scanner;

public class Tsundoku {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		String s = sc.nextLine();

		String[] calender = { "sat", "fri", "thu", "wed", "tue", "mon", "sun" };

		for (int i = 0; i < calender.length; i++) {
			if (s.equals(calender[i]))
				System.out.println(i + 1);
		}

		sc.close();

	}

}


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

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


int main() {
  int S ; 
  cin >> S ; 
  
  
  if (S == "SUN"){
    cout << 7 << endl ; 
  }
  else if (S == "MON"){
    cout << 6 << 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:10:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (S == "SUN"){
      |       ~~^~~~~~~~
a.cc:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if (S == "MON"){
      |            ~~^~~~~~~~
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if (S == "MON"){
      |              ~~^~~~~~~~
a.cc:19:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     else if (S == "TUE"){
      |              ~~^~~~~~~~
a.cc:22:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |     else if (S == "WED"){
      |              ~~^~~~~~~~
a.cc:25:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |     else if (S == "THU"){
      |              ~~^~~~~~~~
a.cc:28:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |     else if (S == "FRI"){
      |              ~~^~~~~~~~
Language: C++

#include <iostream>
#include <map>

string week[7] = {"MON","TUE","WED","THU","FRI","SAT","SUN"};
map<string, int> weekmap;

void CreateWeekMap()
{
  for(int i = 7; i > 0; i--)
    weekmap[week[i - 1]] = i;
}

int main()
{
  string S;
  cin >> S;
  CreateWeekMap();
  cout << weekmap[S] << endl;
  return 0;
}

Compiler output:
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string week[7] = {"MON","TUE","WED","THU","FRI","SAT","SUN"};
      | ^~~~~~
      | stdin
a.cc:5:1: error: 'map' does not name a type
    5 | map<string, int> weekmap;
      | ^~~
a.cc: In function 'void CreateWeekMap()':
a.cc:10:5: error: 'weekmap' was not declared in this scope
   10 |     weekmap[week[i - 1]] = i;
      |     ^~~~~~~
a.cc:10:13: error: 'week' was not declared in this scope
   10 |     weekmap[week[i - 1]] = i;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:15:3: error: 'string' was not declared in this scope
   15 |   string S;
      |   ^~~~~~
a.cc:15:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:16:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |   cin >> S;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:10: error: 'S' was not declared in this scope
   16 |   cin >> S;
      |          ^
a.cc:18:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |   cout << weekmap[S] << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:11: error: 'weekmap' was not declared in this scope
   18 |   cout << weekmap[S] << endl;
      |           ^~~~~~~
a.cc:18:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |   cout << weekmap[S] << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string d;
  cin >> d;
  if(d="SUN") {
    cout << "7" << endl;
  }
  if(d="MON") {
    cout << "6" << endl;
  }
  if(d="TUE") {
    cout << "5" << endl;
  }
  if(d="WED") {
    cout << "4" << endl;
  }
  if(d="THU") {
    cout << "3" << endl;
  }
  if(d="FRI") {
    cout << "2" << endl;
  }
  if(d="SAT") {
    cout << "1" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |   if(d="SUN") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:9:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(d="MON") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:12:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   12 |   if(d="TUE") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:15:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 |   if(d="WED") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:18:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |   if(d="THU") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:21:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   21 |   if(d="FRI") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:24:7: error: could not convert 'd.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   24 |   if(d="SAT") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long int ll;
typedef unsigned long long int ull;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int a,b,c;
  string s,t;
  cin >>s;
  if(s="SUN")a=7;
  if(s="MON")a=6;
  if(s="TUE")a=5;
  if(s="WED")a=4;
  if(s="THU")a=3;
  if(s="FRI")a=2;
  if(s="SAT")a=1;
  cout <<a;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |   if(s="SUN")a=7;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:15:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   15 |   if(s="MON")a=6;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:16:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 |   if(s="TUE")a=5;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:17:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   17 |   if(s="WED")a=4;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:18:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   18 |   if(s="THU")a=3;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:19:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   19 |   if(s="FRI")a=2;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
a.cc:20:7: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   20 |   if(s="SAT")a=1;
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
using namespace std;

int main() {
  string day;
  cin >> day; 
   switch(day){
     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;
      case "SUN":
     cout <<"7";
     break;
   }
	return 0;
}


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

#include <iostream>

using namespace std;

int main() {
    int 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: In function 'int main()':
a.cc:8:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(s == "SUN"){
      |        ~~^~~~~~~~
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     }else if(s == "MON"){
      |              ~~^~~~~~~~
a.cc:12:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     }else if(s == "TUE"){
      |              ~~^~~~~~~~
a.cc:14:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |     }else if(s == "WED"){
      |              ~~^~~~~~~~
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     }else if(s == "THU"){
      |              ~~^~~~~~~~
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |     }else if(s == "FRI"){
      |              ~~^~~~~~~~
a.cc:20:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |     }else if(s == "SAT"){
      |              ~~^~~~~~~~
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    String day[] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
    System.out.println(7 - day.indexOf(s));
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    System.out.println(7 - day.indexOf(s));
                              ^
  symbol:   method indexOf(String)
  location: variable day of type String[]
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    HashMap<String, String> h = new HashMap<String, String>();
    h.put("SUN", "日曜日");
    h.put("MON", "月曜日");
    h.put("TUE", "火曜日");
    h.put("WED", "水曜日");
    h.put("THU", "木曜日");
    h.put("FRI", "金曜日");
    h.put("SAT", "土曜日");
    System.out.println(get(s));
  }
}


Compiler output:
Main.java:15: error: cannot find symbol
    System.out.println(get(s));
                       ^
  symbol:   method get(String)
  location: class Main
1 error
Language: C++

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

Compiler output:
a.cc:10:10: error: expected unqualified-id before 'else'
   10 |         }else if(S=="TUE")
      |          ^~~~
a.cc:12:9: error: expected declaration before '}' token
   12 |         }else if(S=="WED")
      |         ^
a.cc:12:10: error: expected unqualified-id before 'else'
   12 |         }else if(S=="WED")
      |          ^~~~
a.cc:14:9: error: expected declaration before '}' token
   14 |         }else ifelse if(S=="THU")
      |         ^
a.cc:14:10: error: expected unqualified-id before 'else'
   14 |         }else ifelse if(S=="THU")
      |          ^~~~
a.cc:16:9: error: expected declaration before '}' token
   16 |         }else if(S=="FRI")
      |         ^
a.cc:16:10: error: expected unqualified-id before 'else'
   16 |         }else if(S=="FRI")
      |          ^~~~
a.cc:18:9: error: expected declaration before '}' token
   18 |         }else if(S=="SAT")
      |         ^
a.cc:18:10: error: expected unqualified-id before 'else'
   18 |         }else if(S=="SAT")
      |          ^~~~
a.cc:20:9: error: expected declaration before '}' token
   20 |         }else
      |         ^
a.cc:20:10: error: expected unqualified-id before 'else'
   20 |         }else
      |          ^~~~
a.cc:22:9: error: expected declaration before '}' token
   22 |         }
      |         ^
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define _GLIBCXX_DEBUG
using namespace std;
using ll = long long;
using P = pair<int,int>;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: found ':' in nested-name-specifier, expected '::'
    9 |         string S:
      |                 ^
      |                 ::
a.cc:9:16: error: 'S' has not been declared
    9 |         string S:
      |                ^
a.cc:10:13: error: qualified-id in declaration before '>>' token
   10 |         cin >> S;
      |             ^~
a.cc:12:13: error: 'S' was not declared in this scope
   12 |         if (S == "SUN") ans = 7;
      |             ^
a.cc:13:13: error: 'S' was not declared in this scope
   13 |         if (S == "MON") ans = 6;
      |             ^
a.cc:14:13: error: 'S' was not declared in this scope
   14 |         if (S == "TUE") ans = 5;
      |             ^
a.cc:15:13: error: 'S' was not declared in this scope
   15 |         if (S == "WED") ans = 4;
      |             ^
a.cc:16:13: error: 'S' was not declared in this scope
   16 |         if (S == "THU") ans = 3;
      |             ^
a.cc:17:13: error: 'S' was not declared in this scope
   17 |         if (S == "FRI") ans = 2;
      |             ^
a.cc:18:13: error: 'S' was not declared in this scope
   18 |         if (S == "SAT") ans = 1;
      |             ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<string>
#include<queue>
#include<stack>

#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

using namespace std;

#define debug(x) cout<<(#x)<<"="<<(x)<<", ";
#define debug1(x) debug(x) cout<<'\n';
#define debug2(x1, x2) debug(x1) debug(x2) cout<<'\n';
#define debug3(x1, x2, x3) debug(x1) debug(x2) debug(x3) cout<<'\n';
#define debug4(x1, x2, x3, x4) debug(x1) debug(x2) debug(x3) debug(x4) cout<<'\n';
#define debug5(x1, x2, x3, x4, x5) debug(x1) debug(x2) debug(x3) debug(x4) debug(x5) cout<<'\n';

#define fcout cout<<fixed<<setprecision(15)
#define rep(i,j,k) for(int i=j; i<k; ++i)
#define rrep(i,j,k) for(int i=j; i>=k; --i)
#define all(x) (x).begin(), (x).end()
#define sort(x) sort(x.begin(), x.end())
#define lb(x,val) lower_bound(x.begin(), x.end(), val)
#define ub(x,val) upper_bound(x.begin(), x.end(), val)
#define pb(x) emplace_back(x);

typedef long long int lli;
typedef pair<int,int> pii;
typedef pair<lli,lli> pll;
typedef vector<int> vi;
typedef vector<lli> vl;
typedef tuple<int, int, lli> tiil;

//const lli M=998244353ll;
const lli M=1000000007ll;
const double D=1.0;

int main(){
	fast_io 
	string s[]={ "MON", "TUE", "WED", "THU", "FRI", "SAT","SUN"};
	string d; cin>>d;
	int h=0;
	rep(i,6){
		if(d==s[i]){
			h=i;
			break;
		}
	}
	cout<<(6-h):
	return 0;
}

Compiler output:
a.cc:47:16: error: macro "rep" requires 3 arguments, but only 2 given
   47 |         rep(i,6){
      |                ^
a.cc:23:9: note: macro "rep" defined here
   23 | #define rep(i,j,k) for(int i=j; i<k; ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:47:9: error: 'rep' was not declared in this scope
   47 |         rep(i,6){
      |         ^~~
a.cc:53:20: error: expected ';' before ':' token
   53 |         cout<<(6-h):
      |                    ^
      |                    ;
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 's' was not declared in this scope
    9 |   if( s == "MON"){
      |       ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    string S;
    cin >> S;
    vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
    rep(i,7){
        if(S==a.at(i)){
            cout << 7-i << endl;
            break;                }
    }
}

Compiler output:
a.cc:11:23: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                       ^~~~~
a.cc:11:29: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                             ^~~~~
a.cc:11:35: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                   ^~~~~
a.cc:11:41: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                         ^~~~~
a.cc:11:47: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                               ^~~~~
a.cc:11:53: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                     ^~~~~
a.cc:11:59: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                           ^~~~~
a.cc:11:65: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                                 ^~~~~
a.cc: In function 'int main()':
a.cc:11:70: error: could not convert '{5461326, 5066574, 5526853, 5719364, 5523541, 4608585, 5456212, 5461326}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                                      ^
      |                                                                      |
      |                                                                      <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
 
int main() {
    string S;
    cin >> S;
    vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
    rep(i,7){
        if(S==a.at(i)){
            cout << a.at(i+1) << endl;
            break;
        }
    }
}

Compiler output:
a.cc:11:23: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                       ^~~~~
a.cc:11:29: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                             ^~~~~
a.cc:11:35: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                   ^~~~~
a.cc:11:41: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                         ^~~~~
a.cc:11:47: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                               ^~~~~
a.cc:11:53: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                     ^~~~~
a.cc:11:59: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                           ^~~~~
a.cc:11:65: warning: multi-character character constant [-Wmultichar]
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                                 ^~~~~
a.cc: In function 'int main()':
a.cc:11:70: error: could not convert '{5461326, 5066574, 5526853, 5719364, 5523541, 4608585, 5456212, 5461326}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
   11 |     vector<string> a={'SUN','MON','TUE','WED','THU','FRI','SAT','SUN'};
      |                                                                      ^
      |                                                                      |
      |                                                                      <brace-enclosed initializer list>