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

#include <iostream>
#include <string>
#include <vector>

int main()
{
	std::string S;
	std::cin >> S;

	std::vector<std::string> week(7);
	week[0] = "SAT";
	week[1] = "FRI";
	week[2] = "THU";
	week[3] = "WED";
	week[4] = "TUE";
	week[5] = "MON";
	week[6] = "SUN";

	auto i = std::find(std::begin(week), std::end(week), S) - std::begin(week) + 1;

	std::cout << i << std::endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: no matching function for call to 'find(std::vector<std::__cxx11::basic_string<char> >::iterator, std::vector<std::__cxx11::basic_string<char> >::iterator, std::string&)'
   19 |         auto i = std::find(std::begin(week), std::end(week), S) - std::begin(week) + 1;
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:19:27: note:   '__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >' is not derived from 'std::istreambuf_iterator<_CharT>'
   19 |         auto i = std::find(std::begin(week), std::end(week), S) - std::begin(week) + 1;
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

S = input()
weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}

if S in weeks:
    print(weeks[S])

Compiler output:
a.cc:2:10: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |          ^~~~~
a.cc:2:20: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                    ^~~~~
a.cc:2:30: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                              ^~~~~
a.cc:2:40: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                                        ^~~~~
a.cc:2:50: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                                                  ^~~~~
a.cc:2:60: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                                                            ^~~~~
a.cc:2:70: warning: multi-character character constant [-Wmultichar]
    2 | weeks = {'SUN': 7, 'MON': 6, 'TUE': 5, 'WED': 4, 'THU': 3, 'FRI': 2, 'SAT': 1}
      |                                                                      ^~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if S in weeks:
      | ^~
Language: C++

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

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

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

#include <bits/stdc++.h>

using namespace std;
//FILE *fi=freopen("1.txt","r",stdin);
string dv[8];
int main()
{
    string s;
    cin>>s;
    if(s=="SUN")
        cout<<2;
    if(s=="MON")
        cout<<3;
    if(s=="TUE")
        cout<<4;#include <bits/stdc++.h>

using namespace std;
//FILE *fi=freopen("1.txt","r",stdin);
string dv[8];
int main()
{
    string s;
    cin>>s;
    int a;
    if(s=="SUN")
        a=1;
    if(s=="MON")
        a=2;
    if(s=="TUE")
        a=3;
    if(s=="WED")
        a=4;
    if(s=="THU")
        a=5;
    if(s=="FRI")
        a=6;
    else if(s=="SAT")
        a=7;
    cout<<7-a+1;
    return 0;
}

    if(s=="WED")
        cout<<5;
    if(s=="THU")
        cout<<6;
    if(s=="FRI")
        cout<<7;
    else if(s=="SAT")
        cout<<1;
    return 0;
}


Compiler output:
a.cc:15:17: error: stray '#' in program
   15 |         cout<<4;#include <bits/stdc++.h>
      |                 ^
a.cc: In function 'int main()':
a.cc:15:18: error: 'include' was not declared in this scope
   15 |         cout<<4;#include <bits/stdc++.h>
      |                  ^~~~~~~
a.cc:15:27: error: 'bits' was not declared in this scope
   15 |         cout<<4;#include <bits/stdc++.h>
      |                           ^~~~
a.cc:15:32: error: 'stdc' was not declared in this scope; did you mean 'std'?
   15 |         cout<<4;#include <bits/stdc++.h>
      |                                ^~~~
      |                                std
a.cc:17:1: error: expected primary-expression before 'using'
   17 | using namespace std;
      | ^~~~~
a.cc:20:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   20 | int main()
      |         ^~
a.cc:20:9: note: remove parentheses to default-initialize a variable
   20 | int main()
      |         ^~
      |         --
a.cc:20:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:21:1: error: a function-definition is not allowed here before '{' token
   21 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,m,n) for(int i=m; i<n; i++)
#define co(n) cout << n << endl;)
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: switch quantity not an integer
   10 |   switch(s){
      |          ^
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:11:16: note: in expansion of macro 'co'
   11 |     case "SAT":co(1);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:12:16: note: in expansion of macro 'co'
   12 |     case "MON":co(6);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:13:16: note: in expansion of macro 'co'
   13 |     case "TUE":co(5);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:14:16: note: in expansion of macro 'co'
   14 |     case "WED":co(4);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:15:16: note: in expansion of macro 'co'
   15 |     case "THU":co(3);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:16:16: note: in expansion of macro 'co'
   16 |     case "FRI":co(2);
      |                ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:17:16: note: in expansion of macro 'co'
   17 |     case "SUN":co(7);
      |                ^~
Language: Java

import java.util.*;
import java.math.*;
public class main 
{
	public static void main(String[] args) {
		Scanner in= new Scanner(System.in);
String st=in.nextLine();
int ans=7;
if(st.compareTo("SAT")==0)
 ans=1;
else if(st.compareTo("FRI")==0)
ans=2;
else if(st.compareTo("THU")==0)
ans=3;
else if(st.compareTo("WED")==0)
ans=4;
else if(st.compareTo("TUE")==0)
ans=5; 
else if(st.compareTo("MON")==0)
ans=6;
	System.out.print(ans);
}
}


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

#include<cstdio>
int main(){
	char n[5];
	while(gets(n))
	{
		if(n[0]=='M'&&n[1]=='O')
		printf("6\n");
		if(n[0]=='T'&&n[1]=='U')
		printf("5\n");
				if(n[0]=='W'&&n[1]=='E')
		printf("4\n");
				if(n[0]=='T'&&n[1]=='H')
		printf("3\n");
				if(n[0]=='F'&&n[1]=='R')
		printf("2\n");
				if(n[0]=='S'&&n[1]=='A')
		printf("1\n");
				if(n[0]=='S'&&n[1]=='U')
		printf("7\n");
	}
}

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

#include<iostream>
#include<string>
#include<vector>

int main(){
    std::string s;
    std::vector<std::string> str = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};

    std::cin >> s;

    for(int i = 1; i <= 7; i++){
        if(s == str.at(i - 1)){
            std::cout << i << std::endl;
            break;
        }
    }

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#define mods 1000000007
#define pb push_back
#define mp make_pair
#define st first
#define nd second
typedef long long int lint;
typedef unsigned long long int ulint;

sting s;
int main(){
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
	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:11:1: error: 'sting' does not name a type
   11 | sting s;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:16:14: error: 's' was not declared in this scope; did you mean 'st'?
   16 |         cin>>s;
      |              ^
      |              st
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 sun = "SUN";
		String mon = "MON";
		String tue = "TUE";
		String wed = "WED";
		String thu = "THU";
		String fri = "FRI";
		String sat = "SAT";
		// 出力
		if( s.equals(sat)) {
			System.out.println("1");
		} else if( s.equals(fri) ) {
			System.out.println("2");
		} else if( s.equals(thu) ) {
			System.out.println("3");
		} else if( s.equals(wed) ) {
			System.out.println("4");
		} else if( s.equals(tue) ) {
			System.out.println("5");
		} else if( s.equals(mon) ) {
			System.out.println("6");
		} else {
			System.out.println("7");
	}
}


Compiler output:
Main.java:30: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <iostream>
#include <map>
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;

    cout << days.at(S);

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: expected ',' or ';' before 'string'
   16 |     string S = "";
      |     ^~~~~~
a.cc:18:12: error: 'S' was not declared in this scope
   18 |     cin >> S;
      |            ^
Language: Java

import java.util.Scanner;

public class Main1 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String day = sc.next();
		int i = 0;
		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;
		}

		System.out.println(i);
	}
}

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

#include<iostream>
using namespace std;
int main(){
  string s;
  cin >> s;
  int ans;
  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;
  return 0;
}

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

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

int main() {
  string s;
  cin >> s;
  string days[] = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  for (int i = 0; i<7; i++){
    if (s==days[i]){
      if (i==0){
      	int a=7;
      }else{
        int a=i;
      }
      cout << a << endl;
    }
  }
}


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

#include<iostream>
using namespace std;

int main(){
  string s;
  cin>>s;
  int i=7;
  if(s==SAN){
    cout<<i<<endl;
    i--;
    if(s==MON){
      cout<<i<<endl;
      i--;
      if(s==TUE){
        cout<<i<<endl;
        i--;
        if(s==WED){
         cout<<i<<endl;
         i--;
         if(s==THU){
          cout<<i<<endl;
          i--;
      if(s==FRI){
        cout<<i<<endl;
        i--;
        if(s==SAT){
        cout<<i<<endl;
        }
       }
      }
     }  
    }
   }
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'SAN' was not declared in this scope
    8 |   if(s==SAN){
      |         ^~~
a.cc:11:11: error: 'MON' was not declared in this scope
   11 |     if(s==MON){
      |           ^~~
a.cc:14:13: error: 'TUE' was not declared in this scope
   14 |       if(s==TUE){
      |             ^~~
a.cc:17:15: error: 'WED' was not declared in this scope
   17 |         if(s==WED){
      |               ^~~
a.cc:20:16: error: 'THU' was not declared in this scope
   20 |          if(s==THU){
      |                ^~~
a.cc:23:13: error: 'FRI' was not declared in this scope
   23 |       if(s==FRI){
      |             ^~~
a.cc:26:15: error: 'SAT' was not declared in this scope
   26 |         if(s==SAT){
      |               ^~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  
  int ans;
  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:9:10: error: switch quantity not an integer
    9 |   switch(S) {
      |          ^
Language: C++

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

int main(){
  vector<string> w={"a","SAT","FRI","THU","WED","TUE","MON","SUN"}
  string a;
  cin >> a;
  for(int i=1;; i++){
    if(a==w.at(i)){
      cout << i << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'string'
    6 |   string a;
      |   ^~~~~~
a.cc:7:10: error: 'a' was not declared in this scope
    7 |   cin >> a;
      |          ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  string days[] = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  for (int i = 0; i<7; i++){
    if (s==days[i]){
      if (i==0){
      	a=7;
      }else{
        a=i;
      }
      cout << a << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'a' was not declared in this scope
   12 |         a=7;
      |         ^
a.cc:14:9: error: 'a' was not declared in this scope
   14 |         a=i;
      |         ^
a.cc:16:15: error: 'a' was not declared in this scope
   16 |       cout << a << endl;
      |               ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void){
	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: In function 'int main()':
a.cc:10:18: error: expected ';' before 'if'
   10 |         cout<<"6"
      |                  ^
      |                  ;
   11 |     if(s=="TUE")
      |     ~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'maplist' was not declared in this scope; did you mean 'mapList'?
   19 |   cout << maplist[input] << endl;
      |           ^~~~~~~
      |           mapList
Language: Java

import java.util.*;
import java.math.*;
public class adv
{
	public static void main(String[] args) {
		Scanner in= new Scanner(System.in);
String st=in.nextLine();
int ans=7;
if(st.compareTo("SAT")==0)
 ans=1;
else if(st.compareTo("FRI")==0)
ans=2;
else if(st.compareTo("THU")==0)
ans=3;
else if(st.compareTo("WED")==0)
ans=4;
else if(st.compareTo("TUE")==0)
ans=5; 
else if(st.compareTo("MON")==0)
ans=6;
	System.out.print(ans);
}
}


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

#include <bits/stdc++.h>
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define sz(x) int(x.size())
using namespace std;
typedef long long ll;
const int MOD = 1000000007;

int main() {
  int s;
  cin >> s;
  if(s == "SUM") {
    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;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(s == "SUM") {
      |      ~~^~~~~~~~
a.cc:14:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |   if(s == "MON") {
      |      ~~^~~~~~~~
a.cc:17:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   if(s == "TUE") {
      |      ~~^~~~~~~~
a.cc:20:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |   if(s == "WED") {
      |      ~~^~~~~~~~
a.cc:23:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |   if(s == "THU") {
      |      ~~^~~~~~~~
a.cc:26:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |   if(s == "FRI") {
      |      ~~^~~~~~~~
a.cc:29:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |   if(s == "SAT") {
      |      ~~^~~~~~~~
Language: C++

#pragma warning(disable:4996)
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<algorithm>
#include<string.h>
#include<math.h>
#include<time.h>
#include<iomanip>
#include<vector>
using namespace std;
typedef unsigned long long ull;

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

/*

*/

Compiler output:
a.cc:18:14: warning: multi-character character constant [-Wmultichar]
   18 |         case 'SAN':
      |              ^~~~~
a.cc:21:14: warning: multi-character character constant [-Wmultichar]
   21 |         case 'MON':
      |              ^~~~~
a.cc:24:14: warning: multi-character character constant [-Wmultichar]
   24 |         case 'TUE':
      |              ^~~~~
a.cc:27:14: warning: multi-character character constant [-Wmultichar]
   27 |         case 'WED':
      |              ^~~~~
a.cc:30:14: warning: multi-character character constant [-Wmultichar]
   30 |         case 'THU':
      |              ^~~~~
a.cc:33:14: warning: multi-character character constant [-Wmultichar]
   33 |         case 'FRI':
      |              ^~~~~
a.cc:36:14: warning: multi-character character constant [-Wmultichar]
   36 |         case 'SAT':
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:15:9: error: 'String' was not declared in this scope
   15 |         String s;
      |         ^~~~~~
a.cc:16:16: error: 's' was not declared in this scope
   16 |         cin >> s;
      |                ^
Language: C++

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

int main(){
  vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
  string a;
  cin >> a;
  for(int i=1;; i++){
    if(a==w.at(i)){
      cout << i << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'a' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                     ^
a.cc:5:23: error: 'SAT' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                       ^~~
a.cc:5:27: error: 'FRI' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                           ^~~
a.cc:5:31: error: 'THU' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                               ^~~
a.cc:5:35: error: 'WED' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                   ^~~
a.cc:5:39: error: 'TUE' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                       ^~~
a.cc:5:43: error: 'MON' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                           ^~~
a.cc:5:47: error: 'SUN' was not declared in this scope
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                               ^~~
a.cc:5:50: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
    5 |   vector<string> w={a,SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                                  ^
      |                                                  |
      |                                                  <brace-enclosed initializer list>
a.cc:6:3: error: expected ',' or ';' before 'string'
    6 |   string a;
      |   ^~~~~~
Language: C++

// #include <bits/stdc++.h>
#include </Users/rsuazo/bits/stdc++.h>

using namespace std;
using Long = long long;

vector<string> days = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};

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

  int current_s = 0;

  for (int i = 0; i < 7; i++){
    if (days[i] == s) {
      current_s = i;
      break;
    }
  }

  int cnt = 0;
  while(true) {
    if (cnt != 0 && days[current_s] == "SUN") {
      break;
    }
    // cout << days[current_s] << endl;
    cnt++;
    current_s++;
    if (current_s >= 7) current_s = 0;
  }
  cout << cnt << endl;
  return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(void){
	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: In function 'int main()':
a.cc:10:18: error: expected ';' before 'if'
   10 |         cout<<"6"
      |                  ^
      |                  ;
   11 |     if(s=="TUE")
      |     ~~
Language: Java

import java.util.Scanner;

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

if(day.equals(SUN)){
    System.out.println(7);
}
if(day.equals(MON)){
    System.out.println(6);
}
if(day.equals(TUE)){
    System.out.println(5);
}
if(day.equals(WED)){
    System.out.println(4);
}
if(day.equals(THU)){
    System.out.println(3);
}
if(day.equals(FRI)){
    System.out.println(2);
}
if(day.equals(SAT)){
    System.out.println(1);
}

}
}

Compiler output:
Main.java:8: error: cannot find symbol
if(day.equals(SUN)){
              ^
  symbol:   variable SUN
  location: class Main
Main.java:11: error: cannot find symbol
if(day.equals(MON)){
              ^
  symbol:   variable MON
  location: class Main
Main.java:14: error: cannot find symbol
if(day.equals(TUE)){
              ^
  symbol:   variable TUE
  location: class Main
Main.java:17: error: cannot find symbol
if(day.equals(WED)){
              ^
  symbol:   variable WED
  location: class Main
Main.java:20: error: cannot find symbol
if(day.equals(THU)){
              ^
  symbol:   variable THU
  location: class Main
Main.java:23: error: cannot find symbol
if(day.equals(FRI)){
              ^
  symbol:   variable FRI
  location: class Main
Main.java:26: error: cannot find symbol
if(day.equals(SAT)){
              ^
  symbol:   variable SAT
  location: class Main
7 errors
Language: C++

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

Compiler output:
a.cc:26:3: error: 'cout' does not name a type
   26 |   cout << ans << endl ;
      |   ^~~~
a.cc:27:3: error: expected unqualified-id before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void)
{
	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: In function 'int main()':
a.cc:12:18: error: expected ';' before 'if'
   12 |         cout<<"6"
      |                  ^
      |                  ;
   13 |     if(s=="TUE")
      |     ~~
Language: C++

from __future__ import print_function
# import numpy as np
# import numpypy as np
import sys
input = sys.stdin.readline

def eprint(*args, **kwargs):
    print(*args, file=sys.stderr, **kwargs)
    return

import math
import string
import fractions
from fractions import Fraction
from fractions import gcd

def lcm(n,m):
    return int(n*m/gcd(n,m))

import re
import array
import copy
import functools
import operator

import collections
import itertools
import bisect
import heapq


from heapq import heappush
from heapq import heappop
from heapq import heappushpop
from heapq import heapify
from heapq import heapreplace

from queue import PriorityQueue as pq

def reduce(p, q):
    common = fractions.gcd(p, q)
    return (p//common , q//common )
# from itertools import accumulate
# from collections import deque

import random


def main():
    S = input().strip()
    if S=="SUN":
        print(7)
    elif S=="MON":
        print(6)
    elif S=="TUE":
        print(5)
    elif S=="WED":
        print(4)
    elif S=="THU":
        print(3)
    elif S=="FRI":
        print(2)
    elif S=="SAT":
        print(1)
    return

if __name__ == '__main__':
    main()


Compiler output:
a.cc:2:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | # import numpy as np
      |   ^~~~~~
a.cc:2:10: error: #import expects "FILENAME" or <FILENAME>
    2 | # import numpy as np
      |          ^~~~~
a.cc:3:3: warning: #import is a deprecated GCC extension [-Wdeprecated]
    3 | # import numpypy as np
      |   ^~~~~~
a.cc:3:10: error: #import expects "FILENAME" or <FILENAME>
    3 | # import numpypy as np
      |          ^~~~~~~
a.cc:43:3: error: invalid preprocessing directive #from
   43 | # from itertools import accumulate
      |   ^~~~
a.cc:44:3: error: invalid preprocessing directive #from
   44 | # from collections import deque
      |   ^~~~
a.cc:67:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   67 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from __future__ import print_function
      | ^~~~
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next();
    int x = 0;
    switch(s) {
      case "SUN": x=7; break;
      case "MON": x=6; break;
      case "TUE": x=5; break;
      case "WED": x=4; break;
      case "THU": x=3; break;
      case "FRI": x=2; break;
      case "SAT": x=1; break;
    }
    System.out.println(x);


Compiler output:
Main.java:18: error: reached end of file while parsing
    System.out.println(x);
                          ^
1 error
Language: C++

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

typedef long long ll;
const double EPS = 1e-9;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)

int main(){
    string s;
    cin >> s;
    int day=0;
    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;
      
    return 0;
}


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

#include <algorithm>
#include <cstring>
#include <cstdio>

using namespace std ;

char s[100] ;

int main ()
{
	gets(s+1);
	if ( s[1]=='M' ) puts("6");
	else if ( s[1]=='W' ) puts("4");
	else if ( s[1]=='F' ) puts("2");
	else if ( s[1]=='S' ) puts(s[2]=='U'?"7":"1");
	else if ( s[1]=='T' ) puts(s[2]=='U'?"5":"3");
	return 0 ;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
	char a[4];
	gets(a);
	if(a[0]=='S'&&a[1]=='A'&&a[2]=='T') cout<<"1";
	if(a[0]=='M'&&a[1]=='0'&&a[2]=='N') cout<<"2";
	if(a[0]=='T'&&a[1]=='U'&&a[2]=='E') cout<<"3";
	if(a[0]=='W'&&a[1]=='E'&&a[2]=='D') cout<<"4";
	if(a[0]=='T'&&a[1]=='H'&&a[2]=='U') cout<<"5";
	if(a[0]=='F'&&a[1]=='R'&&a[2]=='I') cout<<"6";
	if(a[0]=='S'&&a[1]=='U'&&a[2]=='N') cout<<"7";
	return 0;
}

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

import java.util.Scanner;

public class MainA {

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

		String day = sc.next();

		switch(day) {
		case "SUN":
			System.out.println(7);
			break;
		case "MON":
			System.out.println(6);
			break;
		case "TUE":
			System.out.println(5);
			break;
		case "WED":
			System.out.println(4);
			break;
		case "THU":
			System.out.println(3);
			break;
		case "FRI":
			System.out.println(2);
			break;
		case "SAT":
			System.out.println(1);
			break;
		}
	}

}


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

#include <bits/stdc++.h>
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: In function 'int main()':
a.cc:7:14: error: 'SUN' was not declared in this scope
    7 |     if (S == SUN){
      |              ^~~
a.cc:10:19: error: 'MON' was not declared in this scope
   10 |     else if (S == MON){
      |                   ^~~
a.cc:13:19: error: 'TUE' was not declared in this scope
   13 |     else if (S == TUE){
      |                   ^~~
a.cc:16:19: error: 'WED' was not declared in this scope
   16 |     else if (S == WED){
      |                   ^~~
a.cc:19:19: error: 'THU' was not declared in this scope
   19 |     else if (S == THU){
      |                   ^~~
a.cc:22:19: error: 'FRI' was not declared in this scope
   22 |     else if (S == FRI){
      |                   ^~~
a.cc:25:19: error: 'SAT' was not declared in this scope
   25 |     else if (S == SAT){
      |                   ^~~
Language: C++

#include<iostream>
#include<string>
#include <algorithm>

using namespace std;
SUN,MON,TUE,WED,THU,FRI,SAT 
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 == "SUT") cout << 1;
  
  return 0;
}

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

#include <bits/stdc++.h>

using namespace std ;

char s[100] ;

int main ()
{
	gets(s+1);
	if ( s[1]=='M' ) puts("6");
	else if ( s[1]=='W' ) puts("4");
	else if ( s[1]=='F' ) puts("2");
	else if ( s[1]=='S' ) puts(s[2]=='U'?"7":"1");
	else if ( s[1]=='T' ) puts(s[2]=='U'?"5":"3");
	return 0 ;
}


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

S=input()
if S == "MON":
  print(6);
elif S == "TUE":
  print(5);
elif S == "WED":
  print(4);
elif S == "THU":
  print(3);
elif S == "FRI":
  print(2);
elif S == "SAT":
  print(1);
else:
  print(7);


Compiler output:
a.cc:1:1: error: 'S' does not name a type
    1 | S=input()
      | ^
a.cc:4:1: error: 'elif' does not name a type
    4 | elif S == "TUE":
      | ^~~~
a.cc:6:1: error: 'elif' does not name a type
    6 | elif S == "WED":
      | ^~~~
a.cc:8:1: error: 'elif' does not name a type
    8 | elif S == "THU":
      | ^~~~
a.cc:10:1: error: 'elif' does not name a type
   10 | elif S == "FRI":
      | ^~~~
a.cc:12:1: error: 'elif' does not name a type
   12 | elif S == "SAT":
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'else'
   14 | else:
      | ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(){
  int a = 0;
  char s[10];
  scanf("%s",s);
  switch(s){
    case "SUN": a = 7; break;
    case "MON": a = 6; break;
    case "TUE": a = 5; break;
    case "WED": a = 4; break;
    case "THU": a = 3; break;
    case "FRI": a = 2; break;
    case "SAT": a = 1; break;
    default : break;
  }
  printf("%d",a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:10: error: switch quantity not an integer
    7 |   switch(s){
      |          ^
main.c:8:5: error: pointers are not permitted as case values
    8 |     case "SUN": a = 7; break;
      |     ^~~~
main.c:9:5: error: pointers are not permitted as case values
    9 |     case "MON": a = 6; break;
      |     ^~~~
main.c:10:5: error: pointers are not permitted as case values
   10 |     case "TUE": a = 5; break;
      |     ^~~~
main.c:11:5: error: pointers are not permitted as case values
   11 |     case "WED": a = 4; break;
      |     ^~~~
main.c:12:5: error: pointers are not permitted as case values
   12 |     case "THU": a = 3; break;
      |     ^~~~
main.c:13:5: error: pointers are not permitted as case values
   13 |     case "FRI": a = 2; break;
      |     ^~~~
main.c:14:5: error: pointers are not permitted as case values
   14 |     case "SAT": a = 1; break;
      |     ^~~~
Language: C++

# -*- coding: utf-8 -*-
S = input()
s = ["SUN","MON","TUE","WED","THU","FRI","SAT"]


print(7 - s.index(S))

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:1: error: 'S' does not name a type
    2 | S = input()
      | ^
Language: C++

#include <iostream>
#include <string>

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

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

define ' "
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:4:8: warning: missing terminating ' character
    4 | define ' "
      |        ^
a.cc:4:8: error: missing terminating ' character
    4 | define ' "
      |        ^~~
a.cc:9:9: warning: multi-character character constant [-Wmultichar]
    9 |   if(S=='SUN')cout<<7<<endl;
      |         ^~~~~
a.cc:10:9: warning: multi-character character constant [-Wmultichar]
   10 |   if(S=='MON')cout<<6<<endl;
      |         ^~~~~
a.cc:11:9: warning: multi-character character constant [-Wmultichar]
   11 |   if(S=='TUE')cout<<5<<endl;
      |         ^~~~~
a.cc:12:9: warning: multi-character character constant [-Wmultichar]
   12 |   if(S=='WED')cout<<4<<endl;
      |         ^~~~~
a.cc:13:9: warning: multi-character character constant [-Wmultichar]
   13 |   if(S=='THU')cout<<3<<endl;
      |         ^~~~~
a.cc:14:9: warning: multi-character character constant [-Wmultichar]
   14 |   if(S=='FRI')cout<<2<<endl;
      |         ^~~~~
a.cc:15:9: warning: multi-character character constant [-Wmultichar]
   15 |   if(S=='SAT')cout<<1<<endl;
      |         ^~~~~
a.cc:4:1: error: 'define' does not name a type
    4 | define ' "
      | ^~~~~~
Language: C++

#include <algorithm>
#include <cstdio>

using namespace std ;

char s[100] ;

int main ()
{
	gets(s+1);
	if ( s[1]=='M' ) puts("6");
	else if ( s[1]=='W' ) puts("4");
	else if ( s[1]=='F' ) puts("2");
	else if ( s[1]=='S' ) puts(s[2]=='U'?"7":"1");
	else if ( s[1]=='T' ) puts(s[2]=='U'?"5":"3");
	return 0 ;
}


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

#include<iostream>
#include<string>
using namespace std;
int main(void){
	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: In function 'int main()':
a.cc:10:18: error: expected ';' before 'if'
   10 |         cout<<"6"
      |                  ^
      |                  ;
   11 |     if(s=="TUE")
      |     ~~
Language: C++

#include <iostream>

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 << << endl;
    }
    else if(s == "SAT"){
        cout << 1 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: expected primary-expression before '<<' token
   24 |         cout << << endl;
      |                 ^~
Language: C++

s = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
c = input()
today = 0
while True:
    if s[today]==c:
        break
    today+=1
print(7-today)

Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = ["SUN","MON","TUE","WED","THU","FRI","SAT"]
      | ^
Language: C++

include <bits/stdc++.h>
using namespace std;
int main() {
	char c1, c2;
    cin >> c1 >> c2;
    if (c1=='M')
      	cout << 6;
    if (c1=='T' && c2=='U')
      	cout << 5;
    if (c1=='W')
      	cout << 4;
    if (c1=='T' && c2=='H')
      	cout << 3;
    if (c1=='F')
      	cout << 2;
    if (c1=='S' && c2=='A')
      	cout << 1;
    if (c1=='S' && c2=='U')
      	cout << 7;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> c1 >> c2;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << 6;
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << 5;
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << 4;
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << 3;
      |         ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << 2;
      |         ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << 1;
      |         ^~~~
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << 7;
      |         ^~~~
Language: C++

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

int main (){
	string s;
	cin>>s;
	if(s[0]=='S'&&s[1]=='U')puts("7");
	if(s[0]=='M')puts("6");
	if(s[0]=='T'&&s[1]=='U')puts("5");
	if(s[0]=='W')puts("4");
	if(s[0]=='T'&&s[1]=='H')puts("3");
	if(s[0]=='F')puts("2");
	if(s[0]=='S'&&a[1]=='A')puts("1");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: 'a' was not declared in this scope
   13 |         if(s[0]=='S'&&a[1]=='A')puts("1");
      |                       ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng s;
      |   ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: C++

#include<iostream>
#include<sstream>
#include<stdio.h>
#include<stack>
#include<string>
#include<string.h>
#include<math.h>
#include <algorithm>
#include<cctype>			
#include<iomanip>
#include <time.h>
#include <map>
#include <stdlib.h>
#include <vector>
#include <set>
#include <iterator>
#include<fstream>
#include <queue>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define rep(i, a, b) for(int i=a; i<b; i++)
#define per(i, a, b) for(int i=b-1; i>=a; i--)
#define ifor(n) for(int i=0;i<n;i++) 
#define jfor(n) for(int j=0;j<n;j++)
#define Ifor(n) for(int i=1;i<n;i++) 
#define Jfor(n) for(int j=1;j<n;j++)
const int inf=0x3f3f3f3f;
int main(){
	char s[3];
	scanf("%s",&s);
	if(s[0]=='S'&&s[1]=='U')cout<<7<<endl;
	else if(s[0]=='M')cout<<6<<endl;
	else if(s[0]=='T'&&s[1]=="U")cout<<5<<endl;
	else if(s[0]=='W')cout<<4<<endl;
	else if(s[0]=='T'&&s[1]=="H")cout<<3<<endl;
	else if(s[0]=='F')cout<<2<<endl;
	else cout<<1<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   34 |         else if(s[0]=='T'&&s[1]=="U")cout<<5<<endl;
      |                            ~~~~^~~~~
a.cc:36:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   36 |         else if(s[0]=='T'&&s[1]=="H")cout<<3<<endl;
      |                            ~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s[]={"MON","TUE","WED","THU","FRI","SAT","SUN"},c;
  cin>>c;
  for(int i=0;i<7;i++)
  {
    if(c==s[i])
    {
      cout<<i+1<<endl;
    }
  }
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'return0' was not declared in this scope
   14 |   return0;
      |   ^~~~~~~