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

#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main(){
    const char Day [][4] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
    char tmp[4];
    int result = 0;
    cin >> tmp;
    for(int i=0; i<sizeof(Day)/sizeof(Day[0]); i++){
        if(strcmp(Day[i], tmp) == 0){
            result = i;
            break;
        }
    }
    cout << sizeof(Day)/sizeof(Day[0]) - result << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'strcmp' was not declared in this scope
   11 |         if(strcmp(Day[i], tmp) == 0){
      |            ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<vector>
  +++ |+#include <cstring>
    3 | #include<string>
Language: Java

import java.util.Scanner;

/**
 * WaitForSunday
 */
public class WaitForSunday {

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

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

import java.util.Scanner;

/**
 * WaitForSunday
 */
public class WaitForSunday {

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

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

#include <bits/stdc++.h>
#include <cmath>
#include <set>
#include <cstdio>
#include <vector>
#include <iostream>
#include <utility>

#define fir first
#define sec second
#define get(n) scanf("%d",&n);
#define gets(s) string s;cin >> (s);
#define All(s) (s).begin(), (s).end()
#define chmin(x, y) x = min(x, y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define repk(i, j, k) for(int (i)=(j);(i)<(k);(i)++)
#define repdown(i, j, k) for(int (i)=(j);(i)>=(j);(i)--)
#define dump(x)  std::cout << #x << " = " << (x) << std::endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#define vi vector<int> 
#define vvi vector<vector<int> >
using namespace std;

typedef unsigned long long int ll;
const int Mod = 1e9 + 7;
const int max_n = 3 * 1e5 + 1;
const ll INF = 10241024;
long double INFD = 100100100;

//_________template______________
inline void IN(void){
  return;
}

template <typename First, typename... Rest>
void IN(First& first, Rest&... rest){
  cin >> first;
  IN(rest...);
  return;
}

inline void OUT(void){
  cout << "\n";
  return;
}

template <typename First, typename... Rest>
void OUT(First first, Rest... rest){
  cout << first << " ";
  OUT(rest...);
  return;
}

//_____________________　following sorce code_________________________//
string s;
viod input(){
  IN(s);
}

void solve(){
  input();
  if(s == "SUN")cout << 7;
  else if(s == "MON") cout << 1;
  else if(s == "TUE") cout << 2;
  else if(s == "WED") cout << 3;
  else if(s == "THU") cout << 4;
  else if(s == "FRI") cout << 5;
  else if(s == "SUT") cout << 6;

  cout << endl;
 
}

int main () {
    solve();
    return 0;
}



Compiler output:
a.cc:57:1: error: 'viod' does not name a type; did you mean 'void'?
   57 | viod input(){
      | ^~~~
      | void
a.cc: In function 'void solve()':
a.cc:62:3: error: 'input' was not declared in this scope; did you mean 'int'?
   62 |   input();
      |   ^~~~~
      |   int
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'SUN' was not declared in this scope
    5 |   if(day == SUN){
      |             ^~~
a.cc:8:18: error: 'SAT' was not declared in this scope
    8 |   else if(day == SAT){
      |                  ^~~
a.cc:11:19: error: 'MON' was not declared in this scope
   11 |    else if(day == MON){
      |                   ^~~
a.cc:14:19: error: 'TUE' was not declared in this scope
   14 |    else if(day == TUE){
      |                   ^~~
a.cc:17:19: error: 'WED' was not declared in this scope
   17 |    else if(day == WED){
      |                   ^~~
a.cc:20:19: error: 'THU' was not declared in this scope
   20 |    else if(day == THU){
      |                   ^~~
a.cc:23:19: error: 'FRI' was not declared in this scope
   23 |    else if(day == FRI){
      |                   ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: 'SUN' was not declared in this scope
    5 |   if(day == SUN){
      |             ^~~
a.cc:8:18: error: 'SAT' was not declared in this scope
    8 |   else if(day == SAT);{
      |                  ^~~
a.cc:11:4: error: 'else' without a previous 'if'
   11 |    else if(day == MON);{
      |    ^~~~
a.cc:11:19: error: 'MON' was not declared in this scope
   11 |    else if(day == MON);{
      |                   ^~~
a.cc:14:4: error: 'else' without a previous 'if'
   14 |    else if(day == TUE);{
      |    ^~~~
a.cc:14:19: error: 'TUE' was not declared in this scope
   14 |    else if(day == TUE);{
      |                   ^~~
a.cc:17:4: error: 'else' without a previous 'if'
   17 |    else if(day == WED);{
      |    ^~~~
a.cc:17:19: error: 'WED' was not declared in this scope
   17 |    else if(day == WED);{
      |                   ^~~
a.cc:20:4: error: 'else' without a previous 'if'
   20 |    else if(day == THU);{
      |    ^~~~
a.cc:20:19: error: 'THU' was not declared in this scope
   20 |    else if(day == THU);{
      |                   ^~~
a.cc:23:4: error: 'else' without a previous 'if'
   23 |    else if(day == FRI);{
      |    ^~~~
a.cc:23:19: error: 'FRI' was not declared in this scope
   23 |    else if(day == FRI);{
      |                   ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: switch quantity not an integer
    8 |         switch(S){
      |                ^
a.cc:9:19: error: expected ':' before ';' token
    9 |         case "SUN";
      |                   ^
      |                   :
a.cc:12:19: error: expected ':' before ';' token
   12 |         case "MON";
      |                   ^
      |                   :
a.cc:15:19: error: expected ':' before ';' token
   15 |         case "TUE";
      |                   ^
      |                   :
a.cc:18:19: error: expected ':' before ';' token
   18 |         case "WED";
      |                   ^
      |                   :
a.cc:21:19: error: expected ':' before ';' token
   21 |         case "THU";
      |                   ^
      |                   :
a.cc:24:19: error: expected ':' before ';' token
   24 |         case "FRI";
      |                   ^
      |                   :
a.cc:27:19: error: expected ':' before ';' token
   27 |         case "SAT";
      |                   ^
      |                   :
a.cc:30:16: error: expected ':' before ';' token
   30 |         default;
      |                ^
      |                :
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: switch quantity not an integer
    7 |         switch(S){
      |                ^
a.cc:8:19: error: expected ':' before ';' token
    8 |         case "SUN";
      |                   ^
      |                   :
a.cc:10:19: error: expected ':' before ';' token
   10 |         case "MON";
      |                   ^
      |                   :
a.cc:12:19: error: expected ':' before ';' token
   12 |         case "TUE";
      |                   ^
      |                   :
a.cc:14:19: error: expected ':' before ';' token
   14 |         case "WED";
      |                   ^
      |                   :
a.cc:16:19: error: expected ':' before ';' token
   16 |         case "THU";
      |                   ^
      |                   :
a.cc:18:19: error: expected ':' before ';' token
   18 |         case "FRI";
      |                   ^
      |                   :
a.cc:20:19: error: expected ':' before ';' token
   20 |         case "SAT";
      |                   ^
      |                   :
a.cc:22:16: error: expected ':' before ';' token
   22 |         default;
      |                ^
      |                :
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: switch quantity not an integer
    7 |         switch(S){
      |                ^
a.cc:8:19: error: expected ':' before ';' token
    8 |         case "SUN";
      |                   ^
      |                   :
a.cc:10:19: error: expected ':' before ';' token
   10 |         case "MON";
      |                   ^
      |                   :
a.cc:12:19: error: expected ':' before ';' token
   12 |         case "TUE";
      |                   ^
      |                   :
a.cc:14:19: error: expected ':' before ';' token
   14 |         case "WED";
      |                   ^
      |                   :
a.cc:16:19: error: expected ':' before ';' token
   16 |         case "THU";
      |                   ^
      |                   :
a.cc:18:19: error: expected ':' before ';' token
   18 |         case "FRI";
      |                   ^
      |                   :
a.cc:20:19: error: expected ':' before ';' token
   20 |         case "SAT";
      |                   ^
      |                   :
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'SUN' undeclared (first use in this function)
    6 |   if(x == SUN){
      |           ^~~
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: switch quantity not an integer
    6 |   switch(x){
      |          ^
main.c:7:5: error: pointers are not permitted as case values
    7 |     case "SUN":
      |     ^~~~
main.c:10:5: error: pointers are not permitted as case values
   10 |     case "MON":
      |     ^~~~
main.c:13:5: error: pointers are not permitted as case values
   13 |     case "TUE":
      |     ^~~~
main.c:16:5: error: pointers are not permitted as case values
   16 |     case "WED":
      |     ^~~~
main.c:19:5: error: pointers are not permitted as case values
   19 |     case "THU":
      |     ^~~~
main.c:22:5: error: pointers are not permitted as case values
   22 |     case "FRI":
      |     ^~~~
main.c:25:5: error: pointers are not permitted as case values
   25 |     case "SAT":
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: redefinition of 'x'
    4 |   char x[4] = "MON";
      |        ^
main.c:3:8: note: previous definition of 'x' with type 'char[4]'
    3 |   char x[4] = "SUN";
      |        ^
main.c:5:8: error: redefinition of 'x'
    5 |   char x[4] = "TUE";
      |        ^
main.c:4:8: note: previous definition of 'x' with type 'char[4]'
    4 |   char x[4] = "MON";
      |        ^
main.c:6:8: error: redefinition of 'x'
    6 |   char x[4] = "WED";
      |        ^
main.c:5:8: note: previous definition of 'x' with type 'char[4]'
    5 |   char x[4] = "TUE";
      |        ^
main.c:7:8: error: redefinition of 'x'
    7 |   char x[4] = "THU";
      |        ^
main.c:6:8: note: previous definition of 'x' with type 'char[4]'
    6 |   char x[4] = "WED";
      |        ^
main.c:8:8: error: redefinition of 'x'
    8 |   char x[4] = "FRI";
      |        ^
main.c:7:8: note: previous definition of 'x' with type 'char[4]'
    7 |   char x[4] = "THU";
      |        ^
main.c:9:8: error: redefinition of 'x'
    9 |   char x[4] = "SAT";
      |        ^
main.c:8:8: note: previous definition of 'x' with type 'char[4]'
    8 |   char x[4] = "FRI";
      |        ^
main.c:12:10: error: switch quantity not an integer
   12 |   switch(x){
      |          ^
main.c:13:5: error: pointers are not permitted as case values
   13 |     case "SUN":
      |     ^~~~
main.c:16:5: error: pointers are not permitted as case values
   16 |     case "MON":
      |     ^~~~
main.c:19:5: error: pointers are not permitted as case values
   19 |     case "TUE":
      |     ^~~~
main.c:22:5: error: pointers are not permitted as case values
   22 |     case "WED":
      |     ^~~~
main.c:25:5: error: pointers are not permitted as case values
   25 |     case "THU":
      |     ^~~~
main.c:28:5: error: pointers are not permitted as case values
   28 |     case "FRI":
      |     ^~~~
main.c:31:5: error: pointers are not permitted as case values
   31 |     case "SAT":
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: redefinition of 'x'
    4 |   char x[3] = "MON";
      |        ^
main.c:3:8: note: previous definition of 'x' with type 'char[3]'
    3 |   char x[3] = "SUN";
      |        ^
main.c:5:8: error: redefinition of 'x'
    5 |   char x[3] = "TUE";
      |        ^
main.c:4:8: note: previous definition of 'x' with type 'char[3]'
    4 |   char x[3] = "MON";
      |        ^
main.c:6:8: error: redefinition of 'x'
    6 |   char x[3] = "WED";
      |        ^
main.c:5:8: note: previous definition of 'x' with type 'char[3]'
    5 |   char x[3] = "TUE";
      |        ^
main.c:7:8: error: redefinition of 'x'
    7 |   char x[3] = "THU";
      |        ^
main.c:6:8: note: previous definition of 'x' with type 'char[3]'
    6 |   char x[3] = "WED";
      |        ^
main.c:8:8: error: redefinition of 'x'
    8 |   char x[3] = "FRI";
      |        ^
main.c:7:8: note: previous definition of 'x' with type 'char[3]'
    7 |   char x[3] = "THU";
      |        ^
main.c:9:8: error: redefinition of 'x'
    9 |   char x[3] = "SAT";
      |        ^
main.c:8:8: note: previous definition of 'x' with type 'char[3]'
    8 |   char x[3] = "FRI";
      |        ^
main.c:12:10: error: switch quantity not an integer
   12 |   switch(x){
      |          ^
main.c:13:5: error: pointers are not permitted as case values
   13 |     case "SUN":
      |     ^~~~
main.c:16:5: error: pointers are not permitted as case values
   16 |     case "MON":
      |     ^~~~
main.c:19:5: error: pointers are not permitted as case values
   19 |     case "TUE":
      |     ^~~~
main.c:22:5: error: pointers are not permitted as case values
   22 |     case "WED":
      |     ^~~~
main.c:25:5: error: pointers are not permitted as case values
   25 |     case "THU":
      |     ^~~~
main.c:28:5: error: pointers are not permitted as case values
   28 |     case "FRI":
      |     ^~~~
main.c:31:5: error: pointers are not permitted as case values
   31 |     case "SAT":
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:8: error: redefinition of 'x'
    4 |   char x[3] = "MON";
      |        ^
main.c:3:8: note: previous definition of 'x' with type 'char[3]'
    3 |   char x[3] = "SUN";
      |        ^
main.c:5:8: error: redefinition of 'x'
    5 |   char x[3] = "TUE";
      |        ^
main.c:4:8: note: previous definition of 'x' with type 'char[3]'
    4 |   char x[3] = "MON";
      |        ^
main.c:6:8: error: redefinition of 'x'
    6 |   char x[3] = "WED";
      |        ^
main.c:5:8: note: previous definition of 'x' with type 'char[3]'
    5 |   char x[3] = "TUE";
      |        ^
main.c:7:8: error: redefinition of 'x'
    7 |   char x[3] = "THU";
      |        ^
main.c:6:8: note: previous definition of 'x' with type 'char[3]'
    6 |   char x[3] = "WED";
      |        ^
main.c:8:8: error: redefinition of 'x'
    8 |   char x[3] = "FRI";
      |        ^
main.c:7:8: note: previous definition of 'x' with type 'char[3]'
    7 |   char x[3] = "THU";
      |        ^
main.c:9:8: error: redefinition of 'x'
    9 |   char x[3] = "SAT";
      |        ^
main.c:8:8: note: previous definition of 'x' with type 'char[3]'
    8 |   char x[3] = "FRI";
      |        ^
main.c:12:10: error: switch quantity not an integer
   12 |   switch(x){
      |          ^
main.c:13:10: error: 'SUN' undeclared (first use in this function)
   13 |     case SUN:
      |          ^~~
main.c:13:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:10: error: 'MON' undeclared (first use in this function)
   16 |     case MON:
      |          ^~~
main.c:19:10: error: 'TUE' undeclared (first use in this function)
   19 |     case TUE:
      |          ^~~
main.c:22:10: error: 'WED' undeclared (first use in this function)
   22 |     case WED:
      |          ^~~
main.c:25:10: error: 'THU' undeclared (first use in this function)
   25 |     case THU:
      |          ^~~
main.c:28:10: error: 'FRI' undeclared (first use in this function)
   28 |     case FRI:
      |          ^~~
main.c:31:10: error: 'SAT' undeclared (first use in this function)
   31 |     case SAT:
      |          ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: switch quantity not an integer
    6 |   switch(x){
      |          ^
main.c:7:10: error: 'SUN' undeclared (first use in this function)
    7 |     case SUN:
      |          ^~~
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:10: error: 'MON' undeclared (first use in this function)
   10 |     case MON:
      |          ^~~
main.c:13:10: error: 'TUE' undeclared (first use in this function)
   13 |     case TUE:
      |          ^~~
main.c:16:10: error: 'WED' undeclared (first use in this function)
   16 |     case WED:
      |          ^~~
main.c:19:10: error: 'THU' undeclared (first use in this function)
   19 |     case THU:
      |          ^~~
main.c:22:10: error: 'FRI' undeclared (first use in this function)
   22 |     case FRI:
      |          ^~~
main.c:25:10: error: 'SAT' undeclared (first use in this function)
   25 |     case SAT:
      |          ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: switch quantity not an integer
    6 |   switch(x){
      |          ^
main.c:7:10: error: 'SUN' undeclared (first use in this function)
    7 |     case SUN:
      |          ^~~
main.c:7:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:10: error: 'MON' undeclared (first use in this function)
   10 |     case MON:
      |          ^~~
main.c:13:10: error: 'TUE' undeclared (first use in this function)
   13 |     case TUE:
      |          ^~~
main.c:16:10: error: 'WED' undeclared (first use in this function)
   16 |     case WED:
      |          ^~~
main.c:19:10: error: 'THU' undeclared (first use in this function)
   19 |     case THU:
      |          ^~~
main.c:22:10: error: 'FRI' undeclared (first use in this function)
   22 |     case FRI:
      |          ^~~
main.c:25:10: error: 'SAT' undeclared (first use in this function)
   25 |     case SAT:
      |          ^~~
main.c:29:9: error: expected declaration or statement at end of input
   29 |         printf("%d",7-a);
      |         ^~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
unordered map<string,int>m;
int main(){
m[MON]=1;
m[TUE]=2;
m[WED]=3;
m[THU]=4
m[FRI]=5;
m[SAT]=6;
string s;
cin>>s;
if(s=="SUN")
cout<<7-m[s];
return 0;
}

Compiler output:
a.cc:4:1: error: 'unordered' does not name a type
    4 | unordered map<string,int>m;
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 | m[MON]=1;
      | ^
      | tm
a.cc:6:3: error: 'MON' was not declared in this scope
    6 | m[MON]=1;
      |   ^~~
a.cc:7:3: error: 'TUE' was not declared in this scope
    7 | m[TUE]=2;
      |   ^~~
a.cc:8:3: error: 'WED' was not declared in this scope
    8 | m[WED]=3;
      |   ^~~
a.cc:9:3: error: 'THU' was not declared in this scope
    9 | m[THU]=4
      |   ^~~
a.cc:11:3: error: 'SAT' was not declared in this scope
   11 | m[SAT]=6;
      |   ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
unordered map<string,int>m;
int main(){
m[MON]=1;
m[TUE]=2;
m[WED]=3;
m[THU]=4;
m[FRI]=5;
m[SAT]=6;
string s;
cin>>s;
if(s=="SUN")
court<<7;
else
cout<<7-m[s];
return 0;
}

Compiler output:
a.cc:4:1: error: 'unordered' does not name a type
    4 | unordered map<string,int>m;
      | ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 | m[MON]=1;
      | ^
      | tm
a.cc:6:3: error: 'MON' was not declared in this scope
    6 | m[MON]=1;
      |   ^~~
a.cc:7:3: error: 'TUE' was not declared in this scope
    7 | m[TUE]=2;
      |   ^~~
a.cc:8:3: error: 'WED' was not declared in this scope
    8 | m[WED]=3;
      |   ^~~
a.cc:9:3: error: 'THU' was not declared in this scope
    9 | m[THU]=4;
      |   ^~~
a.cc:10:3: error: 'FRI' was not declared in this scope
   10 | m[FRI]=5;
      |   ^~~
a.cc:11:3: error: 'SAT' was not declared in this scope
   11 | m[SAT]=6;
      |   ^~~
a.cc:15:1: error: 'court' was not declared in this scope
   15 | court<<7;
      | ^~~~~
Language: Java


import java.util.Scanner;

public class Sample {

  public static void main(String[] args) {


    Scanner scanner = new Scanner(System.in);

    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';

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

Compiler output:
Main.java:11: error: unclosed character literal
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                  ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                    ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                       ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                          ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                             ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                   ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                      ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                         ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                            ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                               ^
Main.java:11: error: ';' expected
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                                  ^
Main.java:11: error: unclosed character literal
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                                        ^
Main.java:11: error: not a statement
    String S =  'SUN','MON','TUE','WED','THU','FRI','SAT';
                                                     ^
Main.java:27: error: reached end of file while parsing
    }
     ^
16 errors
Language: Java

package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****

public class HelloAtCoder {
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        String s=scan.next();
        Map<String,Integer> m=new HashMap<>();
        m.put("MON",6);
        m.put("TUE",5);
        m.put("WED",4);
        m.put("THU",3);
        m.put("FRI",2);
        m.put("SAT",1);
        m.put("SUN",7);
        System.out.println(m.get(s));
    }
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }

}


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

import java.util.Scanner;

public class Q147A{
    public static void main(String[] hides){
        Scanner s = new Scanner(System.in);

        String str = s.next();
        switch (str){
            case "MON":
                System.out.print("6");
                break;
            case "TUE":
                System.out.print("5");
                break;
            case "WED":
                System.out.print("4");
                break;
            case "THU":
                System.out.print("3");
                break;
            case "FRI":
                System.out.print("2");
                break;
            case "SAT":
                System.out.print("1");
                break;
            case "SUN":
                System.out.print("7");
                break;

        }
    }
}

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

import java.util.Scanner;

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

        String str = scan.next();
        switch (str){
            case "MON":
                System.out.print("6");
                break;
            case "TUE":
                System.out.print("5");
                break;
            case "WED":
                System.out.print("4");
                break;
            case "THU":
                System.out.print("3");
                break;
            case "FRI":
                System.out.print("2");
                break;
            case "SAT":
                System.out.print("1");
                break;
            case "SUN":
                System.out.print("7");
                break;

        }
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        String str = scan.next();
                     ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class Q147A{
    public static void main(String[] hides){
        Scanner s = new Scanner(System.in);

        String str = scan.next();
        switch (str){
            case "MON":
                System.out.print("6");
                break;
            case "TUE":
                System.out.print("5");
                break;
            case "WED":
                System.out.print("4");
                break;
            case "THU":
                System.out.print("3");
                break;
            case "FRI":
                System.out.print("2");
                break;
            case "SAT":
                System.out.print("1");
                break;
            case "SUN":
                System.out.print("7");
                break;

        }
    }
}

Compiler output:
Main.java:3: error: class Q147A is public, should be declared in a file named Q147A.java
public class Q147A{
       ^
Main.java:7: error: cannot find symbol
        String str = scan.next();
                     ^
  symbol:   variable scan
  location: class Q147A
2 errors
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:62: error: too many initializers for 'char []'
    4 |   char d[] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                                              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:63: error: too many initializers for 'char [7]'
    4 |   char d[7] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                                               ^
Language: Java

import java.util.Scanner;
public class Atcoder {
  public static void main(String args[]){
    Scanner youbi = new Scanner(System.in);
    System.out.println("Enter the date");
    String date = youbi.nextLine();
    
    switch (date){
      case "SUN":
        System.out.println("7");
        break;
      case "MON":
        System.out.println("6");
        break;
      case "TUE":
        System.out.println("5");
        break;
      case "WED":
        System.out.println("4");
        break;
      case "THU":
        System.out.println("3");
        break;
      case "FRI":
        System.out.println("2");
        break;
      case "SAT":
        System.out.println("1");
        break;
    }

  }

}


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

import java.util.Scanner;
public class Atcoder {
  public static void main(String args[]){
    Scanner youbi = new Scanner(System.in);
    System.out.println("Enter the date");
    String date = youbi.nextLine();
    
    switch (date){
      case "SUN":
        System.out.println("7");
        break;
      case "MON":
        System.out.println("6");
        break;
      case "TUE":
        System.out.println("5");
        break;
      case "WED":
        System.out.println("4");
        break;
      case "THU":
        System.out.println("3");
        break;
      case "FRI":
        System.out.println("2");
        break;
      case "SAT":
        System.out.println("1");
        break;
    }

  }

}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'public'
    2 | public class Atcoder {
      | ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Atcoder'
    2 | public class Atcoder {
      |              ^~~~~~~
Language: Java

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


    }
}


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

#include <stdio.h>

int main(void){
  char[3] st={};
  scanf("%s",&st);
  if(st[0]=='M')
    printf("6");
  if(st[0]=='T'){
    if(st[1]=='U')
    printf("5");
    else
      printf("3");
  }
  if(st[0]=='W')
    printf("4");
  if(st[0]=='F')
    printf("2");
  if(st[0]=='S'){
    if(st[1]=='A')
      printf("1");
    else
      printf("7"):
  }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected identifier or '(' before '[' token
    4 |   char[3] st={};
      |       ^
main.c:5:15: error: 'st' undeclared (first use in this function)
    5 |   scanf("%s",&st);
      |               ^~
main.c:5:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:18: error: expected ';' before ':' token
   22 |       printf("7"):
      |                  ^
      |                  ;
Language: C++

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

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

Compiler output:
a.cc: In function 'void output()':
a.cc:9:9: error: 'SUN' was not declared in this scope
    9 |   if(S==SUN){
      |         ^~~
a.cc:12:9: error: 'MON' was not declared in this scope
   12 |   if(S==MON){
      |         ^~~
a.cc:15:9: error: 'TUE' was not declared in this scope
   15 |   if(S==TUE){
      |         ^~~
a.cc:18:9: error: 'WED' was not declared in this scope
   18 |   if(S==WED){
      |         ^~~
a.cc:21:9: error: 'THU' was not declared in this scope
   21 |   if(S==THU){
      |         ^~~
a.cc:24:9: error: 'FRI' was not declared in this scope
   24 |   if(S==FRI){
      |         ^~~
a.cc:27:9: error: 'SAT' was not declared in this scope
   27 |   if(S==SAT){
      |         ^~~
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

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

Compiler output:
a.cc:15:14: warning: multi-character character constant [-Wmultichar]
   15 |         case 'SUN': ans=0;break;
      |              ^~~~~
a.cc:16:14: warning: multi-character character constant [-Wmultichar]
   16 |         case 'MON': ans=6;break;
      |              ^~~~~
a.cc:17:14: warning: multi-character character constant [-Wmultichar]
   17 |         case 'TUE': ans=5;break;
      |              ^~~~~
a.cc:18:14: warning: multi-character character constant [-Wmultichar]
   18 |         case 'WED': ans=4;break;
      |              ^~~~~
a.cc:19:14: warning: multi-character character constant [-Wmultichar]
   19 |         case 'THU': ans=3;break;
      |              ^~~~~
a.cc:20:14: warning: multi-character character constant [-Wmultichar]
   20 |         case 'FRI': ans=2;break;
      |              ^~~~~
a.cc:21:14: warning: multi-character character constant [-Wmultichar]
   21 |         case 'SAT': ans=1;break;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:14:16: error: switch quantity not an integer
   14 |         switch(S){
      |                ^
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;


ll ans=0;

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

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

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'string'
    8 |   string s;
      |   ^~~~~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin << s;
      |          ^
a.cc:12:15: error: 'SAT' was not declared in this scope
   12 |    cout << (7-SAT) << endl;
      |               ^~~
Language: C++

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'string'
    8 |   string s;
      |   ^~~~~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin << s;
      |          ^
Language: C++

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

Compiler output:
a.cc:4:9: error: 'Long' does not name a type; did you mean 'long'?
    4 | typedef Long Long ll;
      |         ^~~~
      |         long
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before 'L'
    7 |   **string L[] = {"SUN","MON","TUE","WED","THU","FRI","SAT"}
      |            ^
a.cc:8:12: error: expected primary-expression before 's'
    8 |   **string s;
      |            ^
a.cc:9:4: error: no match for 'operator*' (operand type is 'std::istream' {aka 'std::basic_istream<char>'})
    9 |   **cin << s;
      |    ^~~~
a.cc:9:12: error: 's' was not declared in this scope
    9 |   **cin << s;
      |            ^
a.cc:2:18: error: expected primary-expression before 'for'
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                  ^~~
a.cc:10:5: note: in expansion of macro 'rep'
   10 |  ** rep(i,7){
      |     ^~~
a.cc:10:9: error: 'i' was not declared in this scope
   10 |  ** rep(i,7){
      |         ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0; i < (n); ++i)
      |                                  ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  const char * plusoneday();
  const char * minusoneday()
    
      int SAT;
      int SUN;
      
  cout<<"plusoneday" << SAT <<"is";
  return "SUN";
  cout<<"minusoneday" << SUN << "is";
  return;"SUN"
  
        
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected initializer before 'int'
    8 |       int SAT;
      |       ^~~
a.cc:11:25: error: 'SAT' was not declared in this scope
   11 |   cout<<"plusoneday" << SAT <<"is";
      |                         ^~~
a.cc:12:10: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   12 |   return "SUN";
      |          ^~~~~
      |          |
      |          const char*
a.cc:14:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |   return;"SUN"
      |   ^~~~~~
a.cc:14:15: error: expected ';' before '}' token
   14 |   return;"SUN"
      |               ^
      |               ;
......
   18 | }
      | ~