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

//includes
#include<iostream>
#include<vector>
#include<set>
#include<tuple>
#include<algorithm>
#include<cmath>
#include<string>
#include<stack>
#include<map>
#include<queue>
#include<iomanip>
#include<numeric>
#include<assert.h>
#include<cstring>
#include<unordered_map>
#include<bitset>

//macros and consts
#define REP(i, n) for(int i = 0; i < (int)(n); i++)
#define all(a) (a).begin(),(a).end()
#define FOR(i,a,b) for(int i = (a); i < (b); i++)
#define FORE(i,a) for(auto &i : a)
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define accm accumulate
#define Fi first
#define Se second
#define INF 1e9
#define llINF (1LL<<60)
#define mINF -1e9
#define mllINF -(1LL<<60)
#define endl "\n"
#define CONT continue
#define BRK break
#define modulo(n, m) (((n)%(m)+(m))%m)

//shorter types
using namespace std;
using ll = long long;
using vi = std::vector<int>;
using vc = std::vector<char>;
using vll = std::vector<long long>;
using vs = std::vector<string>;
using Mi = map<int,int>;
using Mll = map<ll,ll>;
using UMi = unordered_map<int,int>;
using UMll = unordered_map<ll,ll>;
using Pi = pair<int,int>;
using Pll = pair<ll,ll>;
using vPi = vector<Pi>;
using vPll = vector<Pll>;
using vvi = vector<vector<int>>;
using vvll = vector<vector<ll>>;
using vvc = vector<vector<char>>;
using vvs = vector<vector<string>>;
using pqgi = priority_queue<int,vector<int>,greater<int>>;
using pqsi = priority_queue<int,vector<int>,less<int>>;
using pqgll = priority_queue<int,vector<int>,greater<int>>;
using pssll = priority_queue<int,vector<int>,less<int>>;
template<class T>
using vec = vector<T>;

//here begins your code
signed main(){
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);

  string S;
  cin >> S;
  if(S == "SUN"){
  	cout << 7 << endl;
  }else if(S == "MON"){
  	cout << 6 << endl;
  }else if(S == "TUE"){
  	cout << 5 << endl;
  }else if(S == "WED"){
  	cout << 4 << endl;
  }else if(S == "THU"){
  	cout << 3 << endl;
  }else if(S == "FRI"){
  	cout << 2 << endl;
  }
  else{
  	cout << 1 << endl;
  }
  //check types
  //do not eb if you resize
  //resize before you access by idx
  return 0;
} 

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

#include<stdio.h>
int main(){
  char a[3];
  scanf("%s",&a);
  if(a[0]=="M"){
    printf("6");
  }else if(a[0]=="W"){
    printf("4\n");
  }else if(a[0]=="F"){
    printf("2\n");
  }else if(a[2]=="N"){
    printf("7\n");
  }else if(a[1]=="A"){
    printf("1\n");
  }else if(a[1]=="H"){
    printf("3\n");
  }else if(a[1]=="U"){
    printf("5\n");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 |   if(a[0]=="M"){
      |      ~~~~^~~~~
a.cc:7:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   }else if(a[0]=="W"){
      |            ~~~~^~~~~
a.cc:9:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   }else if(a[0]=="F"){
      |            ~~~~^~~~~
a.cc:11:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   }else if(a[2]=="N"){
      |            ~~~~^~~~~
a.cc:13:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   }else if(a[1]=="A"){
      |            ~~~~^~~~~
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |   }else if(a[1]=="H"){
      |            ~~~~^~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |   }else if(a[1]=="U"){
      |            ~~~~^~~~~
Language: C++

#include<stdio.h>
int main(){
  char a[];
  scanf("%s",&a);
  if(a[0]==M){
    printf("6");
  }else if(a[0]==W){
    printf("4\n");
  }else if(a[0]==F){
    printf("2\n");
  }else if(a[2]==N){
    printf("7\n");
  }else if(a[1]==A){
    printf("1\n");
  }else if(a[1]==H){
    printf("3\n");
  }else if(a[1]==U){
    printf("5\n");
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:8: error: storage size of 'a' isn't known
    3 |   char a[];
      |        ^
a.cc:5:12: error: 'M' was not declared in this scope
    5 |   if(a[0]==M){
      |            ^
a.cc:7:18: error: 'W' was not declared in this scope
    7 |   }else if(a[0]==W){
      |                  ^
a.cc:9:18: error: 'F' was not declared in this scope
    9 |   }else if(a[0]==F){
      |                  ^
a.cc:11:18: error: 'N' was not declared in this scope
   11 |   }else if(a[2]==N){
      |                  ^
a.cc:13:18: error: 'A' was not declared in this scope
   13 |   }else if(a[1]==A){
      |                  ^
a.cc:15:18: error: 'H' was not declared in this scope
   15 |   }else if(a[1]==H){
      |                  ^
a.cc:17:18: error: 'U' was not declared in this scope
   17 |   }else if(a[1]==U){
      |                  ^
Language: Java

class Main{
	static Scanner sc = new Scanner(System.in);
  public static int nextSunday(String str){
      	final int SUNDAY = 7;
  	switch(str){
      case "SUN":
          return SUNDAY - 0;
      case "MON":
          return SUNDAY - 1;
      case "TUE":
          return SUNDAY - 2;
      case "WED":
          return SUNDAY - 3;
      case "THU":
          return SUNDAY - 4;
      case "FRI":
          return SUNDAY - 5;
      default:
        return 1;
    }
  }
  public static void main(String[] args){
  	final int SUNDAY = 7;
    String str = sc.next();
    System.out.println(nextSunday(str));
  }
}

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

class Main{
	static Scanner sc = new Scanner(System.in);
  public static int nextSunday(String str){
      	final int SUNDAY = 7;
  	switch(str){
    	case: "SUN";
          return SUNDAY - 0;
        case: "MON";
          return SUNDAY - 1;
        case: "TUE";
          return SUNDAY - 2;
        case: "WED";
          return SUNDAY - 3;
        case: "THU";
          return SUNDAY - 4;
        case: "FRI";
          return SUNDAY - 5;
      default:
        return 1;
    }
  }
  public static void main(String[] args){
  	final int SUNDAY = 7;
    String str = sc.next();
    System.out.println(nextSunday(str));
  }
}

Compiler output:
Main.java:6: error: illegal start of expression
    	case: "SUN";
    	    ^
Main.java:6: error: not a statement
    	case: "SUN";
    	      ^
Main.java:8: error: illegal start of expression
        case: "MON";
            ^
Main.java:8: error: not a statement
        case: "MON";
              ^
Main.java:10: error: illegal start of expression
        case: "TUE";
            ^
Main.java:10: error: not a statement
        case: "TUE";
              ^
Main.java:12: error: illegal start of expression
        case: "WED";
            ^
Main.java:12: error: not a statement
        case: "WED";
              ^
Main.java:14: error: illegal start of expression
        case: "THU";
            ^
Main.java:14: error: not a statement
        case: "THU";
              ^
Main.java:16: error: illegal start of expression
        case: "FRI";
            ^
Main.java:16: error: not a statement
        case: "FRI";
              ^
12 errors
Language: Java

class Main{
	static Scanner sc = new Scanner(System.in);
  public static int nextSunday(String str){
      	final int SUNDAY = 7;
  	switch(str){
    	case: "SUN"
          return SUNDAY - 0;
        case: "MON"
          return SUNDAY - 1;
        case: "TUE"
          return SUNDAY - 2;
        case: "WED"
          return SUNDAY - 3;
        case: "THU"
          return SUNDAY - 4;
        case: "FRI"
          return SUNDAY - 5;
      default:
        return 1;
    }
  }
  public static void main(String[] args){
  	final int SUNDAY = 7;
    String str = sc.next();
    System.out.println(nextSunday(str));
  }
}

Compiler output:
Main.java:6: error: illegal start of expression
    	case: "SUN"
    	    ^
Main.java:6: error: not a statement
    	case: "SUN"
    	      ^
Main.java:6: error: ';' expected
    	case: "SUN"
    	           ^
Main.java:8: error: illegal start of expression
        case: "MON"
            ^
Main.java:8: error: not a statement
        case: "MON"
              ^
Main.java:8: error: ';' expected
        case: "MON"
                   ^
Main.java:10: error: illegal start of expression
        case: "TUE"
            ^
Main.java:10: error: not a statement
        case: "TUE"
              ^
Main.java:10: error: ';' expected
        case: "TUE"
                   ^
Main.java:12: error: illegal start of expression
        case: "WED"
            ^
Main.java:12: error: not a statement
        case: "WED"
              ^
Main.java:12: error: ';' expected
        case: "WED"
                   ^
Main.java:14: error: illegal start of expression
        case: "THU"
            ^
Main.java:14: error: not a statement
        case: "THU"
              ^
Main.java:14: error: ';' expected
        case: "THU"
                   ^
Main.java:16: error: illegal start of expression
        case: "FRI"
            ^
Main.java:16: error: not a statement
        case: "FRI"
              ^
Main.java:16: error: ';' expected
        case: "FRI"
                   ^
18 errors
Language: C++

#include <iostream>
using namespace std;
Stiring date = "";
cin >> date;
if (date="SUN"){
cout << 0;
}else if(date= "MON")
cout << 6;
}else if (date = "TUE"){
cout << 5;
}else if (date = "WED"){
cout << 4;
}else if (date = "THU"){
cout << 3;
}else if(date = "FRI"){
cout << 2;
} else {
cout << 1;
}
}

Compiler output:
a.cc:3:1: error: 'Stiring' does not name a type
    3 | Stiring date = "";
      | ^~~~~~~
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> date;
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'if'
    5 | if (date="SUN"){
      | ^~
a.cc:7:2: error: expected unqualified-id before 'else'
    7 | }else if(date= "MON")
      |  ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }else if (date = "TUE"){
      | ^
a.cc:9:2: error: expected unqualified-id before 'else'
    9 | }else if (date = "TUE"){
      |  ^~~~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 | }else if (date = "WED"){
      |  ^~~~
a.cc:13:2: error: expected unqualified-id before 'else'
   13 | }else if (date = "THU"){
      |  ^~~~
a.cc:15:2: error: expected unqualified-id before 'else'
   15 | }else if(date = "FRI"){
      |  ^~~~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 | } else {
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C

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

int main(void){
  char day[3];
  scanf("%s",&day);
  if(strcmp(SUN,day)==0)
    printf("%d",7);
  if(strcmp(MON,day)==0)
    printf("%d",6);
  if(strcmp(TUE,day)==0)
    printf("%d",5);
  if(strcmp(WED,day)==0)
    printf("%d",4);
  if(strcmp(THU,day)==0)
    printf("%d",3);
  if(strcmp(FRI,day)==0)
    printf("%d",2);
  if(strcmp(SAT,day)==0)
    printf("%d",1);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:13: error: 'SUN' undeclared (first use in this function)
    7 |   if(strcmp(SUN,day)==0)
      |             ^~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'MON' undeclared (first use in this function)
    9 |   if(strcmp(MON,day)==0)
      |             ^~~
main.c:11:13: error: 'TUE' undeclared (first use in this function)
   11 |   if(strcmp(TUE,day)==0)
      |             ^~~
main.c:13:13: error: 'WED' undeclared (first use in this function)
   13 |   if(strcmp(WED,day)==0)
      |             ^~~
main.c:15:13: error: 'THU' undeclared (first use in this function)
   15 |   if(strcmp(THU,day)==0)
      |             ^~~
main.c:17:13: error: 'FRI' undeclared (first use in this function)
   17 |   if(strcmp(FRI,day)==0)
      |             ^~~
main.c:19:13: error: 'SAT' undeclared (first use in this function)
   19 |   if(strcmp(SAT,day)==0)
      |             ^~~
Language: C++

# coding: utf-8
l = [ "SUN","MON","TUE","WED","THU","FRI","SAT"]
S = input()
print(7 - l.index(S))

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'l' does not name a type
    2 | l = [ "SUN","MON","TUE","WED","THU","FRI","SAT"]
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string S;
  cin >> S;

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


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: '\U00002018SUN\U00002019' was not declared in this scope
    8 |   if (S == ‘SUN’){
      |            ^~~~~
a.cc:11:12: error: '\U00002018MON\U00002019' was not declared in this scope
   11 |   if (S == ‘MON’){
      |            ^~~~~
a.cc:14:12: error: '\U00002018TUE\U00002019' was not declared in this scope
   14 |   if (S == ‘TUE’){
      |            ^~~~~
a.cc:17:12: error: '\U00002018WED\U00002019' was not declared in this scope
   17 |   if (S == ‘WED’){
      |            ^~~~~
a.cc:20:12: error: '\U00002018THU\U00002019' was not declared in this scope
   20 |   if (S == ‘THU’){
      |            ^~~~~
a.cc:23:12: error: '\U00002018FRI\U00002019' was not declared in this scope
   23 |   if (S == ‘FRI’){
      |            ^~~~~
a.cc:26:12: error: '\U00002018SAT\U00002019' was not declared in this scope
   26 |   if (S == ‘SAT’){
      |            ^~~~~
Language: C++

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:3:9: error: 'string' was not declared in this scope
    3 |         string S;
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> S;
      |         ^~~
a.cc:4:16: error: 'S' was not declared in this scope
    4 |         cin >> S;
      |                ^
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << 7;
      |                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << 6;
      |                 ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << 5;
      |                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << 4;
      |                 ^~~~
a.cc:19:17: error: 'cout' was not declared in this scope
   19 |                 cout << 3;
      |                 ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout << 2;
      |                 ^~~~
a.cc:25:17: error: 'cout' was not declared in this scope
   25 |                 cout << 1;
      |                 ^~~~
Language: C++

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

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

import java.util.*;
 public class solution{
    public static void main(String args[])
{
       String s;
        Scanner sc=new Scanner(System.in);
        s=sc.nextLine();
        if(s.equals("SUN"))
        {
            System.out.println("7");
        }
        if(s.equals("MON"))
        {
            System.out.println("6");
        }
        if(s.equals("TUE"))
        {
            System.out.println("5");
        }
        if(s.equals("WED"))
        {
            System.out.println("4");
        }
        if(s.equals("THU"))
        {
            System.out.println("3");
        }
        if(s.equals("FRI"))
        {
            System.out.println("2");
        }
        if(s.equals("SAT"))
        {
            System.out.println("1");
        }

    
}
}

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

import java.util.*;
 public class mirror{
    public static void main(String args[])
{
       String s;
        Scanner sc=new Scanner(System.in);
        s=sc.nextLine();
        if(s.equals("SUN"))
        {
            System.out.println("7");
        }
        if(s.equals("MON"))
        {
            System.out.println("6");
        }
        if(s.equals("TUE"))
        {
            System.out.println("5");
        }
        if(s.equals("WED"))
        {
            System.out.println("4");
        }
        if(s.equals("THU"))
        {
            System.out.println("3");
        }
        if(s.equals("FRI"))
        {
            System.out.println("2");
        }
        if(s.equals("SAT"))
        {
            System.out.println("1");
        }

    
}
}

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

import java.util.*;
public class mirror{
    public static void main(String args[])
{
       String s;
        Scanner sc=new Scanner(System.in);
        s=sc.nextLine();
        if(s.equals("SUN"))
        {
            System.out.println("7");
        }
        if(s.equals("MON"))
        {
            System.out.println("6");
        }
        if(s.equals("TUE"))
        {
            System.out.println("5");
        }
        if(s.equals("WED"))
        {
            System.out.println("4");
        }
        if(s.equals("THU"))
        {
            System.out.println("3");
        }
        if(s.equals("FRI"))
        {
            System.out.println("2");
        }
        if(s.equals("SAT"))
        {
            System.out.println("1");
        }

    
}
}

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

import java.util.*;
public class solution{
    public static void main(String args[])
{
       String s;
        Scanner sc=new Scanner(System.in);
        s=sc.nextLine();
        if(s.equals("SUN"))
        {
            System.out.println("7");
        }
        if(s.equals("MON"))
        {
            System.out.println("6");
        }
        if(s.equals("TUE"))
        {
            System.out.println("5");
        }
        if(s.equals("WED"))
        {
            System.out.println("4");
        }
        if(s.equals("THU"))
        {
            System.out.println("3");
        }
        if(s.equals("FRI"))
        {
            System.out.println("2");
        }
        if(s.equals("SAT"))
        {
            System.out.println("1");
        }

    
}
}

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

import java.util.*;
public class solution{
    public static void main(String args[])
{
       String s;
        Scanner sc=new Scanner(System.in);
        s=sc.nextLine();
        if(s.equals("SUN"))
        {
            System.out.println("7");
        }
        if(s.equals("MON"))
        {
            System.out.println("6");
        }
        if(s.equals("TUE"))
        {
            System.out.println("5"/);
        }
        if(s.equals("WED"))
        {
            System.out.println("4");
        }
        if(s.equals("THU"))
        {
            System.out.println("3");
        }
        if(s.equals("FRI"))
        {
            System.out.println("2");
        }
        if(s.equals("SAT"))
        {
            System.out.println("1");
        }

    
}
}

Compiler output:
Main.java:18: error: illegal start of expression
            System.out.println("5"/);
                                   ^
1 error
Language: Java

import java.util.*;
import java.math.*;
import java.io.*;

public class cf {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);

        final Map<String, Integer> cnt = Map.of(
            "SUN", 7,
            "MON", 6,
            "TUE", 5,
            "WED", 4,
            "THU", 3,
            "FRI", 2,
            "SAT", 1
        );


        String s = in.next();
        out.println(cnt.get(s));

        in.close();
        out.close();
    }
    static class Pair {
	  		public long first;
	  		public long second;

	  		public Pair() {
	  			this(0, 0);
	  		}

	  		public Pair(final long first, final long second) {
	  			this.first = first;
	  			this.second = second;
	  		}
	  	}
}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: switch quantity not an integer
    8 |         switch(s)
      |                ^
a.cc:10:12: error: 'MON' was not declared in this scope
   10 |       case MON:
      |            ^~~
a.cc:13:14: error: 'SUN' was not declared in this scope
   13 |         case SUN:
      |              ^~~
a.cc:16:14: error: 'TUE' was not declared in this scope
   16 |         case TUE:
      |              ^~~
a.cc:19:14: error: 'WED' was not declared in this scope
   19 |         case WED:
      |              ^~~
a.cc:22:14: error: 'THU' was not declared in this scope
   22 |         case THU:
      |              ^~~
a.cc:25:14: error: 'FRI' was not declared in this scope
   25 |         case FRI:
      |              ^~~
a.cc:28:14: error: 'SAT' was not declared in this scope
   28 |         case SAT:
      |              ^~~
Language: Java

public static class Holiday{
	public static void main(String[] args){
    	Scanner input = new Scanner(System.in);
      System.out.println("Enter one of these day to find how many day is the next sunday");
      Sytem.out.println("SUN, MON, TUE, WED, THU, FRI or SAT");
      String day = input.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;
        default:
          System.out.println("invalid");
      }
    }
}

Compiler output:
Main.java:8: error: unclosed character literal
        case 'SUN':
             ^
Main.java:8: error: unclosed character literal
        case 'SUN':
                 ^
Main.java:9: error: illegal start of expression
          System.out.println("7");
                ^
Main.java:11: error: unclosed character literal
        case 'MON':
             ^
Main.java:11: error: unclosed character literal
        case 'MON':
                 ^
Main.java:12: error: illegal start of expression
          System.out.println("6");
                ^
Main.java:14: error: unclosed character literal
        case 'TUE':
             ^
Main.java:14: error: unclosed character literal
        case 'TUE':
                 ^
Main.java:15: error: illegal start of expression
          System.out.println("5");
                ^
Main.java:17: error: unclosed character literal
        case 'WED':
             ^
Main.java:17: error: unclosed character literal
        case 'WED':
                 ^
Main.java:18: error: illegal start of expression
          System.out.println("4");
                ^
Main.java:20: error: unclosed character literal
        case 'THU':
             ^
Main.java:20: error: unclosed character literal
        case 'THU':
                 ^
Main.java:21: error: illegal start of expression
          System.out.println("3");
                ^
Main.java:23: error: unclosed character literal
        case 'FRI':
             ^
Main.java:23: error: unclosed character literal
        case 'FRI':
                 ^
Main.java:24: error: illegal start of expression
          System.out.println("2");
                ^
Main.java:26: error: unclosed character literal
        case 'SAT':
             ^
Main.java:26: error: unclosed character literal
        case 'SAT':
                 ^
Main.java:27: error: illegal start of expression
          System.out.println("1");
                ^
21 errors
Language: C

#include <stdio.h>
int main(void)
{
  char s[3];
  scanf("%s", &s);
  
  switch(s[0]){
    case 　'S':
      switch(s[1]){
        case 'U':
      	printf("7");
      	break;
        case 'A':
        printf("1");
        break;
      }
      break;
    case   'M':
      printf("6");
      break;
    case   'T':
      switch(s[1]){
        case 'U':
	    printf("5");
      	break;
        case 'H':
        printf("3");
        break;
      }
      break;
    case   'W':
      printf("4");
      break;
    case   'F':
      printf("2");
      break;
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: stray '\343' in program
    8 |     case <U+3000>'S':
      |          ^~~~~~~~
Language: C++

import java.util.*;

class Main {
	public static void main(String[] args) {
		String[] day = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};

		Scanner s = new Scanner(System.in);
		String c = s.next();
		int ans = 7;
		for (int i = 0; i<day.length && !(c.equals(day[i])); i++, ans--);
		System.out.println(ans);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:15: error: expected ':' before 'static'
    4 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:4:33: error: 'String' has not been declared
    4 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:4:42: error: expected ',' or '...' before 'args'
    4 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:17: error: 'String' was not declared in this scope
    5 |                 String[] day = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                 ^~~~~~
a.cc:5:24: error: expected primary-expression before ']' token
    5 |                 String[] day = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                        ^
a.cc:7:17: error: 'Scanner' was not declared in this scope
    7 |                 Scanner s = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:8:24: error: expected ';' before 'c'
    8 |                 String c = s.next();
      |                        ^
a.cc:10:35: error: 'day' was not declared in this scope
   10 |                 for (int i = 0; i<day.length && !(c.equals(day[i])); i++, ans--);
      |                                   ^~~
a.cc:10:51: error: 'c' was not declared in this scope
   10 |                 for (int i = 0; i<day.length && !(c.equals(day[i])); i++, ans--);
      |                                                   ^
a.cc:11:17: error: 'System' was not declared in this scope
   11 |                 System.out.println(ans);
      |                 ^~~~~~
Language: C++

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

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

#include <iostream>
using namespace std;
int main(){
  string s[7] = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  string ss;
  cin >> ss;
  for(int i=0;i<7;i++){
    if(ss==s[i]){
      cout << 7 - i << endl;
      return 0;
    }
  }

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: switch quantity not an integer
    6 |   switch(s){
      |          ^
a.cc:29:3: error: expected primary-expression before '}' token
   29 |   }
      |   ^
Language: Java

week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
let order = 0;
for(let i = 0, i < week.length; i ++){
	if(week[i] == S){
    	return 7 - i
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
^
Main.java:1: error: unclosed character literal
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
        ^
Main.java:1: error: unclosed character literal
week = ['SUN','MON','TUE','WED','THU','FRI','SAT']
                                                ^
Main.java:3: error: class, interface, enum, or record expected
for(let i = 0, i < week.length; i ++){
^
Main.java:3: error: class, interface, enum, or record expected
for(let i = 0, i < week.length; i ++){
                                ^
5 errors
Language: C++

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 's' was not declared in this scope
    6 |     cin>>s;
      |          ^
a.cc:7:12: error: 'SUN' was not declared in this scope
    7 |     if (a==SUN){
      |            ^~~
a.cc:10:17: error: 'MON' was not declared in this scope
   10 |     else if (a==MON){
      |                 ^~~
a.cc:13:17: error: 'TUE' was not declared in this scope
   13 |     else if (a==TUE){
      |                 ^~~
a.cc:16:17: error: 'WED' was not declared in this scope
   16 |     else if (a==WED){
      |                 ^~~
a.cc:19:17: error: 'THU' was not declared in this scope
   19 |     else if (a==THU){
      |                 ^~~
a.cc:22:17: error: 'FRI' was not declared in this scope
   22 |     else if (a==FRI){
      |                 ^~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 's' was not declared in this scope
    6 |     cin>>s;
      |          ^
a.cc:7:12: error: 'SUN' was not declared in this scope
    7 |     if (a==SUN){
      |            ^~~
a.cc:10:17: error: 'MON' was not declared in this scope
   10 |     else if (a==MON){
      |                 ^~~
a.cc:13:17: error: 'TUE' was not declared in this scope
   13 |     else if (a==TUE){
      |                 ^~~
a.cc:16:17: error: 'WED' was not declared in this scope
   16 |     else if (a==WED){
      |                 ^~~
a.cc:19:17: error: 'THU' was not declared in this scope
   19 |     else if (a==THU){
      |                 ^~~
a.cc:22:17: error: 'FRI' was not declared in this scope
   22 |     else if (a==FRI){
      |                 ^~~
a.cc:25:17: error: 'SAT' was not declared in this scope
   25 |     else if (a==SAT){
      |                 ^~~
Language: C++

<?php
$s = trim(fgets(STDIN));
if($s === "SUN") {
    $nextSun = 7;
} elseif($s === "MON") {
    $nextSun = 6;
} elseif($s === "TUE") {
    $nextSun = 5;
} elseif($s === "WED") {
    $nextSun = 4;
} elseif($s === "THU") {
    $nextSun = 3;
} elseif($s === "FRI") {
    $nextSun = 2;
} elseif($s === "SAT") {
    $nextSun = 1;
}
echo $nextSun . PHP_EOL;

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if($s === "SUN") {
      | ^~
a.cc:5:9: error: expected constructor, destructor, or type conversion before '(' token
    5 | } elseif($s === "MON") {
      |         ^
a.cc:7:9: error: expected constructor, destructor, or type conversion before '(' token
    7 | } elseif($s === "TUE") {
      |         ^
a.cc:9:9: error: expected constructor, destructor, or type conversion before '(' token
    9 | } elseif($s === "WED") {
      |         ^
a.cc:11:9: error: expected constructor, destructor, or type conversion before '(' token
   11 | } elseif($s === "THU") {
      |         ^
a.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
   13 | } elseif($s === "FRI") {
      |         ^
a.cc:15:9: error: expected constructor, destructor, or type conversion before '(' token
   15 | } elseif($s === "SAT") {
      |         ^
a.cc:18:1: error: 'echo' does not name a type
   18 | echo $nextSun . PHP_EOL;
      | ^~~~
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'unordered_map' was not declared in this scope
    5 |     unordered_map <string,int> mp;
      |     ^~~~~~~~~~~~~
a.cc:5:5: note: suggested alternatives:
In file included from /usr/include/c++/14/unordered_map:41,
                 from /usr/include/c++/14/functional:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/unordered_map.h:109:11: note:   'std::unordered_map'
  109 |     class unordered_map
      |           ^~~~~~~~~~~~~
/usr/include/c++/14/unordered_map:67:13: note:   'std::pmr::unordered_map'
   67 |       using unordered_map
      |             ^~~~~~~~~~~~~
a.cc:5:20: error: 'string' was not declared in this scope
    5 |     unordered_map <string,int> mp;
      |                    ^~~~~~
a.cc:5:20: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:27: error: expected primary-expression before 'int'
    5 |     unordered_map <string,int> mp;
      |                           ^~~
a.cc:6:5: error: 'mp' was not declared in this scope
    6 |     mp.insert({"MON",6});
      |     ^~
a.cc:13:11: error: expected ';' before 's'
   13 |     string s;
      |           ^~
      |           ;
a.cc:14:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |     cin>>s;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:10: error: 's' was not declared in this scope
   14 |     cin>>s;
      |          ^
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<mp[s];
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  int ans;
  cin >> s;
  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 if(s=="SAT") ans = 1;
  cout << ans << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: expected '}' at end of input
   15 |   cout << ans << endl;
      |                       ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected ';' before 'cout'
   19 |   else (a == "SUN")
      |                    ^
      |                    ;
   20 |   cout << "7" << endl;
      |   ~~~~              
a.cc:19:11: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   19 |   else (a == "SUN")
      |        ~~~^~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3772:5: note: declared here
 3772 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
Language: C

#include<stdio.h>
#include<cstring>

int main(){
        char s[4];
        scanf("%s", s);
        if(!strcmp(s,"SUN"))puts("7");
        if(!strcmp(s,"MON"))puts("6");
        if(!strcmp(s,"TUE"))puts("5");
        if(!strcmp(s,"WED"))puts("4");
        if(!strcmp(s,"THU"))puts("3");
        if(!strcmp(s,"FRI"))puts("2");
        if(!strcmp(s,"SAT"))puts("1");
        return 0;
}

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

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

int fun(char * day)
{
	int i,comp;
	char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
	for( i=0;i<7;i++)
	{
		comp=strcmp(s[i],day);
		if(comp==0) break;
	}
	return(7-i);
}
int main()
{
	int n;
	ch
	cin>>s;	
	n=fun(s);
	cout<<n;
	return 0;
}

Compiler output:
a.cc: In function 'int fun(char*)':
a.cc:7:22: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                      ^~~~~
a.cc:7:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                            ^~~~~
a.cc:7:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                  ^~~~~
a.cc:7:40: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                        ^~~~~
a.cc:7:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                              ^~~~~
a.cc:7:52: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                                    ^~~~~
a.cc:7:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    7 |         char * s[7]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                                          ^~~~~
a.cc: In function 'int main()':
a.cc:18:9: error: 'ch' was not declared in this scope
   18 |         ch
      |         ^~
a.cc:20:15: error: 's' was not declared in this scope
   20 |         n=fun(s);
      |               ^