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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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:8:10: error: extended character “ is not valid in an identifier
    8 | if (S == “SUN”){
      |          ^
a.cc:8:10: error: extended character ” is not valid in an identifier
a.cc:11:10: error: extended character “ is not valid in an identifier
   11 | if (S == “MON”){
      |          ^
a.cc:11:10: error: extended character ” is not valid in an identifier
a.cc:14:10: error: extended character “ is not valid in an identifier
   14 | if (S == “TUE”){
      |          ^
a.cc:14:10: error: extended character ” is not valid in an identifier
a.cc:17:10: error: extended character “ is not valid in an identifier
   17 | if (S == “WED”){
      |          ^
a.cc:17:10: error: extended character ” is not valid in an identifier
a.cc:20:10: error: extended character “ is not valid in an identifier
   20 | if (S == “THU”){
      |          ^
a.cc:20:10: error: extended character ” is not valid in an identifier
a.cc:23:10: error: extended character “ is not valid in an identifier
   23 | if (S == “FRI”){
      |          ^
a.cc:23:10: error: extended character ” is not valid in an identifier
a.cc:26:10: error: extended character “ is not valid in an identifier
   26 | if (S == “SAT”){
      |          ^
a.cc:26:10: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:10: error: '\U0000201cSUN\U0000201d' was not declared in this scope
    8 | if (S == “SUN”){
      |          ^~~~~
a.cc:11:10: error: '\U0000201cMON\U0000201d' was not declared in this scope
   11 | if (S == “MON”){
      |          ^~~~~
a.cc:14:10: error: '\U0000201cTUE\U0000201d' was not declared in this scope
   14 | if (S == “TUE”){
      |          ^~~~~
a.cc:17:10: error: '\U0000201cWED\U0000201d' was not declared in this scope
   17 | if (S == “WED”){
      |          ^~~~~
a.cc:20:10: error: '\U0000201cTHU\U0000201d' was not declared in this scope
   20 | if (S == “THU”){
      |          ^~~~~
a.cc:23:10: error: '\U0000201cFRI\U0000201d' was not declared in this scope
   23 | if (S == “FRI”){
      |          ^~~~~
a.cc:26:10: error: '\U0000201cSAT\U0000201d' was not declared in this scope
   26 | if (S == “SAT”){
      |          ^~~~~
Language: C

#include <stdio.h>
 
/*enum week {
  MON,
  TUE,
  WED,
  THU,
  FRI,
  SAT,
  SUN
};*/
 
int main(void) {
   char wk[3];
    //enum week wk; // enum型のオブジェクトを定義
    scanf("%c", &wk);
    
    switch(wk) {
        case 'MON':
          printf("6\n");
            break;
        case 'TUE':
        printf("5\n");
            break;
        case 'WED':
        printf("4\n");
            break;
        case 'THU':
        printf("3\n");
            break;
        case 'FRI':
            printf("2\n");
            break;
        case 'SAT':
        printf("1\n");
            break;
        case 'SUN':
            printf("7\n");
            break;
    }
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:12: error: switch quantity not an integer
   18 |     switch(wk) {
      |            ^~
main.c:19:14: warning: multi-character character constant [-Wmultichar]
   19 |         case 'MON':
      |              ^~~~~
main.c:22:14: warning: multi-character character constant [-Wmultichar]
   22 |         case 'TUE':
      |              ^~~~~
main.c:25:14: warning: multi-character character constant [-Wmultichar]
   25 |         case 'WED':
      |              ^~~~~
main.c:28:14: warning: multi-character character constant [-Wmultichar]
   28 |         case 'THU':
      |              ^~~~~
main.c:31:14: warning: multi-character character constant [-Wmultichar]
   31 |         case 'FRI':
      |              ^~~~~
main.c:34:14: warning: multi-character character constant [-Wmultichar]
   34 |         case 'SAT':
      |              ^~~~~
main.c:37:14: warning: multi-character character constant [-Wmultichar]
   37 |         case 'SUN':
      |              ^~~~~
Language: Java

import java.util.Scanner;

public class CantWaitForHoliday_A {

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

		String s = sc.nextLine();

		String[] days = new String[] { "SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT", };

		for (int i = 0; i < 7; i++) {
			if (s.equals(days[i])) {
				System.out.println(7 - i);
			}
		}
	}

}


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

#include<iostream>
#include<string>
#include<map>
using namespace std;
void main()
{
	map<string, int> dic;
	dic["SUN"] = 7;
	dic["MON"] = 6;
	dic["TUE"] = 5;
	dic["WED"] = 4;
	dic["THU"] = 3;
	dic["FRI"] = 2;
	dic["SAT"] = 1;

	string s;
	cin >> s;
	int dif = dic[s];
	cout << dif << endl;
}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main()
      | ^~~~
Language: C++

using namespace std;

int main(){
  vector<string> vec{"SUN","MON","TUE","WED","THU","FRI","SAT"};
  reverse(vec.begin(), vec.end());
  string c;
  cin >> c;
  auto itr = std::find(vec.begin(), vec.end(), c);
  size_t index = std::distance( vec.begin(), itr );
  cout << index+1 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<string> vec{"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:4:10: error: 'string' was not declared in this scope
    4 |   vector<string> vec{"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:4:18: error: 'vec' was not declared in this scope
    4 |   vector<string> vec{"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                  ^~~
a.cc:5:3: error: 'reverse' was not declared in this scope
    5 |   reverse(vec.begin(), vec.end());
      |   ^~~~~~~
a.cc:6:9: error: expected ';' before 'c'
    6 |   string c;
      |         ^~
      |         ;
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> c;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:10: error: 'c' was not declared in this scope
    7 |   cin >> c;
      |          ^
a.cc:8:19: error: 'find' is not a member of 'std'
    8 |   auto itr = std::find(vec.begin(), vec.end(), c);
      |                   ^~~~
a.cc:9:3: error: 'size_t' was not declared in this scope
    9 |   size_t index = std::distance( vec.begin(), itr );
      |   ^~~~~~
a.cc:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | using namespace std;
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout << index+1 << endl;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:11: error: 'index' was not declared in this scope
   10 |   cout << index+1 << endl;
      |           ^~~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |   cout << index+1 << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
typedef long long ll;

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

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}

Compiler output:
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory
    2 | #include<boost/multi_array.hpp>
      |         ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

String S = "FRI";

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
String S = "FRI";
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		for(int i = 0;i<str.length;i++) {
		^
Main.java:5: error: class, interface, enum, or record expected
		for(int i = 0;i<str.length;i++) {
		              ^
Main.java:5: error: class, interface, enum, or record expected
		for(int i = 0;i<str.length;i++) {
		                           ^
Main.java:11: error: class, interface, enum, or record expected
				}else {
				^
Main.java:13: error: class, interface, enum, or record expected
				}
				^
6 errors
Language: C++

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

int main() {
  string s;
  cin>>s;
  if(s==SUN){
    cout<<7<<endl;
  }
  else if(s==MON){
    cout<<6<<endl;
   else if(s==TEU){
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'SUN' was not declared in this scope
    7 |   if(s==SUN){
      |         ^~~
a.cc:10:14: error: 'MON' was not declared in this scope
   10 |   else if(s==MON){
      |              ^~~
a.cc:12:4: error: expected '}' before 'else'
   12 |    else if(s==TEU){
      |    ^~~~
a.cc:10:18: note: to match this '{'
   10 |   else if(s==MON){
      |                  ^
a.cc:12:15: error: 'TEU' was not declared in this scope
   12 |    else if(s==TEU){
      |               ^~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

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

		String S = null;

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

	}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

public class workspace {

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

		String S = null;

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

	}

}


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

#include<stdio.h>
#include<string.h>
#include<math.h>
 
int main(){
	char str[5];
  	fgets(str,sizeof(str),stdin);
   	switch(str){
      case "SUN" :
  		printf("7");
        break;
  	  case "MON" :
        printf("6");
        break;
      case "TUE" :
       printf("5");
        break;
      case "WED" :
        printf("4"); 
        break;
  case "THU" :
   printf("3");
        break;
  case "FRI" :
  printf("2");
        break;
  default :
  printf("1");
    }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: switch quantity not an integer
    8 |         switch(str){
      |                ^~~
main.c:9:7: error: pointers are not permitted as case values
    9 |       case "SUN" :
      |       ^~~~
main.c:12:11: error: pointers are not permitted as case values
   12 |           case "MON" :
      |           ^~~~
main.c:15:7: error: pointers are not permitted as case values
   15 |       case "TUE" :
      |       ^~~~
main.c:18:7: error: pointers are not permitted as case values
   18 |       case "WED" :
      |       ^~~~
main.c:21:3: error: pointers are not permitted as case values
   21 |   case "THU" :
      |   ^~~~
main.c:24:3: error: pointers are not permitted as case values
   24 |   case "FRI" :
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int 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:8:12: error: extended character “ is not valid in an identifier
    8 |   if (S == “SUN”){
      |            ^
a.cc:8:12: error: extended character ” is not valid in an identifier
a.cc:11:12: error: extended character “ is not valid in an identifier
   11 |   if (S == “MON”){
      |            ^
a.cc:11:12: error: extended character ” is not valid in an identifier
a.cc:14:12: error: extended character “ is not valid in an identifier
   14 |   if (S == “TUE”){
      |            ^
a.cc:14:12: error: extended character ” is not valid in an identifier
a.cc:17:12: error: extended character “ is not valid in an identifier
   17 |   if (S == “WED”){
      |            ^
a.cc:17:12: error: extended character ” is not valid in an identifier
a.cc:20:12: error: extended character “ is not valid in an identifier
   20 |   if (S == “THU”){
      |            ^
a.cc:20:12: error: extended character ” is not valid in an identifier
a.cc:23:12: error: extended character “ is not valid in an identifier
   23 |   if (S == “FRI”){
      |            ^
a.cc:23:12: error: extended character ” is not valid in an identifier
a.cc:26:12: error: extended character “ is not valid in an identifier
   26 |   if (S == “SAT”){
      |            ^
a.cc:26:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:12: error: '\U0000201cSUN\U0000201d' was not declared in this scope
    8 |   if (S == “SUN”){
      |            ^~~~~
a.cc:11:12: error: '\U0000201cMON\U0000201d' was not declared in this scope
   11 |   if (S == “MON”){
      |            ^~~~~
a.cc:14:12: error: '\U0000201cTUE\U0000201d' was not declared in this scope
   14 |   if (S == “TUE”){
      |            ^~~~~
a.cc:17:12: error: '\U0000201cWED\U0000201d' was not declared in this scope
   17 |   if (S == “WED”){
      |            ^~~~~
a.cc:20:12: error: '\U0000201cTHU\U0000201d' was not declared in this scope
   20 |   if (S == “THU”){
      |            ^~~~~
a.cc:23:12: error: '\U0000201cFRI\U0000201d' was not declared in this scope
   23 |   if (S == “FRI”){
      |            ^~~~~
a.cc:26:12: error: '\U0000201cSAT\U0000201d' was not declared in this scope
   26 |   if (S == “SAT”){
      |            ^~~~~
Language: Java

public class Main {
    public static void main(String[] args) {
 
        Scanner s = new Scanner(System.in);
    	String str = s.next();
    	String[] day = {"MON","TUE","WED","THU","FRI","SAT","SUN"};
    	int[] l = {6,5,4,3,2,1,7};
    	for (int i = 0; i < 7; i++){
			if (str.equals(day[i])) System.out.println(l[i]);

		}

}
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

#include <stdio.h>

int main(void){
	char c[4];
  	int n;
  	scanf("%s",c);
  	SUN,MON,TUE,WED,THU,FRI,SAT
  	if(c[0]=='M'){
    	n=6;
    }else if(c[0]=='T'){
      	if(c[1]=='U'){n=5;}
    	else{n=3;}
    }else if(c[0]=='W'){
    	n=4;
    }else if(c[0]=='F'){
    	n=2;
    }else if(c[0]=='S'){
    	if(c[1]=='U'){n=7;}
    	else{n=1;}
    }
  	printf("%d\n",n);
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'SUN' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |         ^~~
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:13: error: 'MON' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |             ^~~
main.c:7:17: error: 'TUE' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                 ^~~
main.c:7:21: error: 'WED' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                     ^~~
main.c:7:25: error: 'THU' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                         ^~~
main.c:7:29: error: 'FRI' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                             ^~~
main.c:7:33: error: 'SAT' undeclared (first use in this function)
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                                 ^~~
main.c:7:36: error: expected ';' before 'if'
    7 |         SUN,MON,TUE,WED,THU,FRI,SAT
      |                                    ^
      |                                    ;
    8 |         if(c[0]=='M'){
      |         ~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[10];
int main()
{
	gets(s);
	if(strcmp(s,"SUN")==0)
		printf("7");
	else if(strcmp(s,"MON")==0)
		printf("6");
	else if(strcmp(s,"TUE")==0)
		printf("5");
	else if(strcmp(s,"WED")==0)
		printf("4");
	else if(strcmp(s,"THU")==0)
		printf("3");
	else if(strcmp(s,"FRI")==0)
		printf("2");
	else
		printf("1");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(s);
      |         ^~~~
      |         getw
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;
  
    if(s=="SAT")co(1);
    if(s=="MON")co(6);
    if(s=="TUE")co(5);
    if(s=="WED")co(4);
    if(s=="THU")co(3);
    if(s=="FRI")co(2);
    if(s=="SUN")co(7);
  
  return 0;
}

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

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

		String S = "";

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

	}



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C

#include<stdio.h>
#include<string.h>
#include<math.h>

int main(){
	char str[5];
  	fgets(str,sizeof(str),stdin);
   	switch(str){
      case "SUN" :
  		printf("7");
  	  case "MON" :
        printf("6");
  case "TUE" :
       printf("5");
  case "WED" :
   printf("4");
  case "THU" :
   printf("3");
  case "FRI" :
  printf("2");
  default :
  printf("1");
    }
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: switch quantity not an integer
    8 |         switch(str){
      |                ^~~
main.c:9:7: error: pointers are not permitted as case values
    9 |       case "SUN" :
      |       ^~~~
main.c:11:11: error: pointers are not permitted as case values
   11 |           case "MON" :
      |           ^~~~
main.c:13:3: error: pointers are not permitted as case values
   13 |   case "TUE" :
      |   ^~~~
main.c:15:3: error: pointers are not permitted as case values
   15 |   case "WED" :
      |   ^~~~
main.c:17:3: error: pointers are not permitted as case values
   17 |   case "THU" :
      |   ^~~~
main.c:19:3: error: pointers are not permitted as case values
   19 |   case "FRI" :
      |   ^~~~
Language: C++

using System;

namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {

            string str = Console.ReadLine();
            int ans = 0;
            if (str == "SUN") ans = 7;
            else if (str == "MON") ans = 6;
            else if (str == "THU") ans = 5;
            else if (str == "WED") ans = 4;
            else if (str == "THU") ans = 3;
            else if (str == "FRI") ans = 2;
            else ans = 1;

            Console.WriteLine(ans);



        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:25:6: error: expected ';' after class definition
   25 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void AtCoder::Program::Main(int*)':
a.cc:10:13: error: 'string' was not declared in this scope
   10 |             string str = Console.ReadLine();
      |             ^~~~~~
a.cc:12:17: error: 'str' was not declared in this scope; did you mean 'std'?
   12 |             if (str == "SUN") ans = 7;
      |                 ^~~
      |                 std
a.cc:20:13: error: 'Console' was not declared in this scope
   20 |             Console.WriteLine(ans);
      |             ^~~~~~~
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;
  
    if(s=="SAT")co(1);
    if(s=="MON")co(6);
    if(s=="TUE")co(5);
    if(s=="WED")co(4);
    if(s=="THU")co(3);
    if(s=="FRI")co(2);
    if(s=="SUN")co(7);
  
  return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
	char a[5]={};
	while(gets(a)){
		if(strcmp(a,"MON")==0)
			printf("6\n");
		else if(strcmp(a,"TUE")==0)
			printf("5\n");
		else if(strcmp(a,"WED")==0)
			printf("4\n");
		else if(strcmp(a,"THU")==0)
			printf("3\n");
		else if(strcmp(a,"FRI")==0)
			printf("2\n");
		else if(strcmp(a,"SAT")==0)
			printf("1\n");
		else if(strcmp(a,"SUN")==0)
			printf("7\n");
	}
}
//SUN, MON, TUE, WED, THU, FRI, or SAT

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

	import java.util.Scanner;

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

	    switch(s) {
	    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);
	    case "SUN":
	    	System.out.println(7);
	  }
	}

}

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

#include <stdio.h>
int main(){
  char s[100];
  scanf("%s",&s);
  if(s==SUN) printf("7");
  else if(s==MON) printf("6");
  else if(s==TUE) printf("5");
  else if(s==WED) printf("4");
  else if(s==THU) printf("3");
  else if(s==FRI) printf("2");
  else if(s==SAT) printf("1");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'SUN' undeclared (first use in this function)
    5 |   if(s==SUN) printf("7");
      |         ^~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:14: error: 'MON' undeclared (first use in this function)
    6 |   else if(s==MON) printf("6");
      |              ^~~
main.c:7:14: error: 'TUE' undeclared (first use in this function)
    7 |   else if(s==TUE) printf("5");
      |              ^~~
main.c:8:14: error: 'WED' undeclared (first use in this function)
    8 |   else if(s==WED) printf("4");
      |              ^~~
main.c:9:14: error: 'THU' undeclared (first use in this function)
    9 |   else if(s==THU) printf("3");
      |              ^~~
main.c:10:14: error: 'FRI' undeclared (first use in this function)
   10 |   else if(s==FRI) printf("2");
      |              ^~~
main.c:11:14: error: 'SAT' undeclared (first use in this function)
   11 |   else if(s==SAT) printf("1");
      |              ^~~
Language: C++

package main

import (
	"fmt"
)

func main() {
	var aa string
	fmt.Scanf("%s", &aa)
	// SUN,MON,TUE,WED,THU,FRI,SAT
	mm := map[string]int{"SUN": 7, "MON": 6, "TUE": 5, "WED": 4, "THU": 3, "FRI": 2, "SAT": 1}

	fmt.Printf("%d\n", mm[aa])
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
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;
  
    if(s=="SAT")co(1);
    if(s=="MON")co(6);
    if(s=="TUE")co(5);
    if(s=="WED")co(4);
    if(s=="THU")co(3);
    if(s=="FRI")co(2);
    if(s=="SUN")co(7);
  
  return 0;
}

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

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

		String S;

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

	}



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void)
{
	int n;
  	string s;
  	cin >> n >> s;
  	for(int i=0;i<s.size();i++){
   		int temp=(int)s[i];
      	temp+=n;
      	if(temp<=90)
          	s[i]=(char)temp;
      	else
          	s[i]=(char)(temp-26);
    }
  	cout << s[i];
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:19: error: 'i' was not declared in this scope
   17 |         cout << s[i];
      |                   ^
Language: C++

#include "pch.h"

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

// 作業を開始するためのヒント: 
//    1. ソリューション エクスプローラー ウィンドウを使用してファイルを追加/管理します 
//   2. チーム エクスプローラー ウィンドウを使用してソース管理に接続します
//   3. 出力ウィンドウを使用して、ビルド出力とその他のメッセージを表示します
//   4. エラー一覧ウィンドウを使用してエラーを表示します
//   5. [プロジェクト] > [新しい項目の追加] と移動して新しいコード ファイルを作成するか、[プロジェクト] > [既存の項目の追加] と移動して既存のコード ファイルをプロジェクトに追加します
//   6. 後ほどこのプロジェクトを再び開く場合、[ファイル] > [開く] > [プロジェクト] と移動して .sln ファイルを選択します


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

public class workspace {

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

		String S;

		String[] str = {"MON","TUE","WED","THU","FRI","SAT","SUN"};

		for(int i = 0;i<str.length;i++) {

			if(str[i].equals(S)) {

				if(i == 6) {
					System.out.println(7);
				}else {
					System.out.println(7-(i+1));
				}
			}

		}

	}

}


Compiler output:
Main.java:1: error: class workspace is public, should be declared in a file named workspace.java
public class workspace {
       ^
1 error
Language: Java

import java.util.Scanner;

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

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

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

#include"stdc++.h"
using namespace std;

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

Compiler output:
a.cc:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include"stdc++.h"
      |         ^~~~~~~~~~
compilation terminated.
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;
  
    if(s=="SAT")co(1);
    if(s=="MON")co(6);
    if(s=="TUE")co(5);
    if(s=="WED")co(4);
    if(s=="THU")co(3);
    if(s=="FRI")co(2);
    if(s=="SUN")co(7);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:10:17: note: in expansion of macro 'co'
   10 |     if(s=="SAT")co(1);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:11:17: note: in expansion of macro 'co'
   11 |     if(s=="MON")co(6);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:12:17: note: in expansion of macro 'co'
   12 |     if(s=="TUE")co(5);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:13:17: note: in expansion of macro 'co'
   13 |     if(s=="WED")co(4);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:14:17: note: in expansion of macro 'co'
   14 |     if(s=="THU")co(3);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:15:17: note: in expansion of macro 'co'
   15 |     if(s=="FRI")co(2);
      |                 ^~
a.cc:3:33: error: expected primary-expression before ')' token
    3 | #define co(n) cout << n << endl;)
      |                                 ^
a.cc:16:17: note: in expansion of macro 'co'
   16 |     if(s=="SUN")co(7);
      |                 ^~
a.cc: At global scope:
a.cc:18:3: error: expected unqualified-id before 'return'
   18 |   return 0;
      |   ^~~~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define f first
#define s second
#define all(container) container.begin(),container.end()
// #define fast ios::sync_with_stdio(0); cin.tie(0)
#ifndef ONLINE_JUDGE
#include "debug.cpp"
#endif
#define int long long
const int mod = 1e9+7;  
int power(int a,int b) { if(b==0) return 1; int res = power(a,b/2); if(b&1) return res * res * a; else return res * res; }


int32_t main(){
    
  // fast;
  map<string,int> days = {{"SUN",0},
                          {"MON",1},
                          {"TUE",2},
                          {"WED",3},
                          {"THU",4},
                          {"FRI",5},
                          {"SAT",6} } ;

  string s1; cin >> s1;
  int i = days[s1] , d = days[s1];
  int c = 0;
  
  do{
    c++;
    i = (i+1)%7;
  }while(i!=0);

  cout << c;
  return 0;
}

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

#include<stdio.h>
#include<string.h>
int main()
{
	char a[5]={};
	while(gets(a)){
		if(strcmp(a,"MON")==0)
			printf("6\n");
		else if(strcmp(a,"TUE")==0)
			printf("5\n");
		else if(strcmp(a,"WED")==0)
			printf("4\n");
		else if(strcmp(a,"THU")==0)
			printf("3\n");
		else if(strcmp(a,"FRI")==0)
			printf("2\n");
		else if(strcmp(a,"SAT")==0)
			printf("1\n");
		else if(strcmp(a,"SUN")==0)
			printf("7\n");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         while(gets(a)){
      |               ^~~~
      |               getw
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 = 7; i>0; i--){
    if (s==days[i]){
      int a = i
      cout << a << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected ',' or ';' before 'cout'
   12 |       cout << a << endl;
      |       ^~~~
Language: C

#include<stdio.h>
int main(){
  char s[100];
  scanf("%s",&s);
  if(s==SUN) printf("7");
  if(s==MON) printf("6");
  if(s==TUE) printf("5");
  if(s==WED) printf("4");
  if(s==THU) printf("3");
  if(s==FRI) printf("2");
  if(s==SAT) printf("1");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'SUN' undeclared (first use in this function)
    5 |   if(s==SUN) printf("7");
      |         ^~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'MON' undeclared (first use in this function)
    6 |   if(s==MON) printf("6");
      |         ^~~
main.c:7:9: error: 'TUE' undeclared (first use in this function)
    7 |   if(s==TUE) printf("5");
      |         ^~~
main.c:8:9: error: 'WED' undeclared (first use in this function)
    8 |   if(s==WED) printf("4");
      |         ^~~
main.c:9:9: error: 'THU' undeclared (first use in this function)
    9 |   if(s==THU) printf("3");
      |         ^~~
main.c:10:9: error: 'FRI' undeclared (first use in this function)
   10 |   if(s==FRI) printf("2");
      |         ^~~
main.c:11:9: error: 'SAT' undeclared (first use in this function)
   11 |   if(s==SAT) printf("1");
      |         ^~~
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() {
	char s[4];
	for (int i = 0; i < 3; ++i) {
		cin >> s[i];
	}
	
	switch (s[1]) {
	case 'A':
		if (s[2] == 'N') {
			cout << 7;
			return 0;
		}
		else {
			cout << 1;
			return 0;
		}
	case 'O':
		cout << 6;
		return 0;
	case 'U':
		cout << 5;
		return 0;
	case 'E':
		cout << 4;
		return 0;
	case 'H':
		cout << 3;
		return 0;
	case 'R':
		cout << 2;
		return 0
	}
}

/*

*/

Compiler output:
a.cc: In function 'int main()':
a.cc:44:25: error: expected ';' before '}' token
   44 |                 return 0
      |                         ^
      |                         ;
   45 |         }
      |         ~
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(week.begin(), week.end(), 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(week.begin(), week.end(), 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(week.begin(), week.end(), S) - std::begin(week) + 1;
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
char s[10];
int main()
{
	gets(s);
	if(strcmp(s,"SAT")==0)
		printf("1");
	else if(strcmp(s,"SUN")==0)
		printf("7");
	else if(strcmp(s,"MON")==0)
		printf("6");
	else if(strcmp(s,"TUE")==0)
		printf("5");
	else if(strcmp(s,"WED")==0)
		printf("4");
	else if(strcmp(s,"THU")==0)
		printf("3");
	else
		printf("2");
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	char n[5];
	scanf("%s",&n);
	if(n[0]=='M')
	{
		printf("6");
	}
	if(n[0]=='T')
	{
		if(n[1]=='U')
			printf("5");
		else
			printf("3");
	}
	if(n[0]=='W')
	{
		printf("4");
	}
	if(n[0]=='F')
	{
		printf("2");
	}
	if(n[0]=='S')
	{
		if(n[1]=='U')
			printf("7");
		else
			printf("1");
	}
	return 0;
}



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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	char n[5];
	scanf("%s",&n);
	if(n[0]=='M')
	{
		printf("6\n");
	}
	if(n[0]=='T')
	{
		if(n[1]=='U')
			printf("5\n");
		else
			printf("3\n");
	}
	if(n[0]=='W')
	{
		printf("4\n");
	}
	if(n[0]=='F')
	{
		printf("2\n");
	}
	if(n[0]=='S')
	{
		if(n[1]=='U')
			printf("7\n");
		else
			printf("1\n");
	}
	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.