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

#include<iostream>
#include<string>

void main(void)
{
  std::string str;
  std::in >> str;
  if("SUN" == str)
  {
    std::out << '7';
  }
  if("MON" == str)
  {
    std::out << '6';
  }
  if("TUE" == str)
  {
    std::out << '5';
  }
  if("WED" == str)
  {
    std::out << '4';
  }
  if("THU" == str)
  {
    std::out << '3';
  }
  if("FRI" == str)
  {
    std::out << '2';
  }
  if("SAT" == str)
  {
    std::out << '1';
  }
}

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(void)
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:8: error: 'in' is not a member of 'std'; did you mean 'min'?
    7 |   std::in >> str;
      |        ^~
      |        min
a.cc:10:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   10 |     std::out << '7';
      |          ^~~
      |          oct
a.cc:14:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   14 |     std::out << '6';
      |          ^~~
      |          oct
a.cc:18:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   18 |     std::out << '5';
      |          ^~~
      |          oct
a.cc:22:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   22 |     std::out << '4';
      |          ^~~
      |          oct
a.cc:26:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   26 |     std::out << '3';
      |          ^~~
      |          oct
a.cc:30:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   30 |     std::out << '2';
      |          ^~~
      |          oct
a.cc:34:10: error: 'out' is not a member of 'std'; did you mean 'oct'?
   34 |     std::out << '1';
      |          ^~~
      |          oct
Language: Java

import java.util.*;
import java.lang.Math.*;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	int A = sc.nextInt();
      	int B = sc.nextInt();
      	int X = sc.nextInt();
      	int N = 0;
      	for(N = 0 ; A*N+B*intLength(N)<X ; N++){
        	
        }
      	System.out.println(String.valueOf(N));
    }
  	public static int numberLength(int userNumber) {

    	int numberCounter = 10;
    	boolean condition = true;
    	int digitLength = 1;

    	while (condition) {
        	int numberRatio = userNumber / numberCounter;
        	if (numberRatio < 1) {
            	condition = false;
        	} else {
            	digitLength++;
            	numberCounter *= 10;
        	}
    	}
    	return digitLength; 
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
      	for(N = 0 ; A*N+B*intLength(N)<X ; N++){
      	                  ^
  symbol:   method intLength(int)
  location: class Main
1 error
Language: C

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

main(){
  char Week[100];
  gets(Week);
  
  if(Week == "SUN"){
    printf("7");
  }
  else if(Week == "SAT"){
    printf("1")
  }
  else if(Week == "FRI"){
    printf("2")
  }
  else if(Week == "THU"){
    printf("3")
  }
  else if(Week == "WED"){
    printf("4")
  }
  else if(Week == "TUE"){
    printf("3")
  }
  else if(Week == "MON"){
    printf("2")
  }
  
}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(Week);
      |   ^~~~
      |   fgets
main.c:13:16: error: expected ';' before '}' token
   13 |     printf("1")
      |                ^
      |                ;
   14 |   }
      |   ~             
main.c:16:16: error: expected ';' before '}' token
   16 |     printf("2")
      |                ^
      |                ;
   17 |   }
      |   ~             
main.c:19:16: error: expected ';' before '}' token
   19 |     printf("3")
      |                ^
      |                ;
   20 |   }
      |   ~             
main.c:22:16: error: expected ';' before '}' token
   22 |     printf("4")
      |                ^
      |                ;
   23 |   }
      |   ~             
main.c:25:16: error: expected ';' before '}' token
   25 |     printf("3")
      |                ^
      |                ;
   26 |   }
      |   ~             
main.c:28:16: error: expected ';' before '}' token
   28 |     printf("2")
      |                ^
      |                ;
   29 |   }
      |   ~
Language: C

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

main(){
  char Week[100];
  gets(Week);
  
  if(Week = "SUN"){
    printf("7");
  }
  else if(Week = "SAT"){
    printf("1")
  }
  else if(Week = "FRI"){
    printf("2")
  }
  else if(Week = "THU"){
    printf("3")
  }
  else if(Week = "WED"){
    printf("4")
  }
  else if(Week = "TUE"){
    printf("3")
  }
  else if(Week = "MON"){
    printf("2")
  }
  
}

Compiler output:
main.c:5:1: error: return type defaults to 'int' [-Wimplicit-int]
    5 | main(){
      | ^~~~
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(Week);
      |   ^~~~
      |   fgets
main.c:9:11: error: assignment to expression with array type
    9 |   if(Week = "SUN"){
      |           ^
main.c:12:16: error: assignment to expression with array type
   12 |   else if(Week = "SAT"){
      |                ^
main.c:13:16: error: expected ';' before '}' token
   13 |     printf("1")
      |                ^
      |                ;
   14 |   }
      |   ~             
main.c:15:16: error: assignment to expression with array type
   15 |   else if(Week = "FRI"){
      |                ^
main.c:16:16: error: expected ';' before '}' token
   16 |     printf("2")
      |                ^
      |                ;
   17 |   }
      |   ~             
main.c:18:16: error: assignment to expression with array type
   18 |   else if(Week = "THU"){
      |                ^
main.c:19:16: error: expected ';' before '}' token
   19 |     printf("3")
      |                ^
      |                ;
   20 |   }
      |   ~             
main.c:21:16: error: assignment to expression with array type
   21 |   else if(Week = "WED"){
      |                ^
main.c:22:16: error: expected ';' before '}' token
   22 |     printf("4")
      |                ^
      |                ;
   23 |   }
      |   ~             
main.c:24:16: error: assignment to expression with array type
   24 |   else if(Week = "TUE"){
      |                ^
main.c:25:16: error: expected ';' before '}' token
   25 |     printf("3")
      |                ^
      |                ;
   26 |   }
      |   ~             
main.c:27:16: error: assignment to expression with array type
   27 |   else if(Week = "MON"){
      |                ^
main.c:28:16: error: expected ';' before '}' token
   28 |     printf("2")
      |                ^
      |                ;
   29 |   }
      |   ~
Language: Java

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.nextLine();
    
    int days = 0;
    
    if(S == "SUN"){}
    else if(S == "SAT"){ days += 1;}
    else if(S == "FRI"){ days += 2;}
    else if(S == "THU"){ days += 3;}
    else if(S == "WED"){ days += 4;}
    else if(S == "TUE"){ days += 5;}
    else if(S == "MON"){ days += 6;}
    
    System.out.println(days);
  }
}

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

public class Main{
  public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    
    int days = 0;
    
    if(S == "SUN"){}
    else if(S == "SAT"){ days += 1;}
    else if(S == "FRI"){ days += 2;}
    else if(S == "THU"){ days += 3;}
    else if(S == "WED"){ days += 4;}
    else if(S == "TUE"){ days += 5;}
    else if(S == "MON"){ days += 6;}
    
    System.out.println(days);
  }
}

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

#include<iostream>
 
int main()
{
String s;
  
  scanf("%s",s);
  if(s == 'SAT'){
    return 1;
  }else if(s == 'FRI'){
    return 2;
  }else if(s == 'THU'){
    return 3;
  }else if(s == 'WED'){
    return 4;
  }else if(s == 'TUE'){
    return 5;
  }else if(s == 'MON'){
    return 6;
  }else if(s == 'SUN'){
    return 7;
  }
}

Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |   if(s == 'SAT'){
      |           ^~~~~
a.cc:10:17: warning: multi-character character constant [-Wmultichar]
   10 |   }else if(s == 'FRI'){
      |                 ^~~~~
a.cc:12:17: warning: multi-character character constant [-Wmultichar]
   12 |   }else if(s == 'THU'){
      |                 ^~~~~
a.cc:14:17: warning: multi-character character constant [-Wmultichar]
   14 |   }else if(s == 'WED'){
      |                 ^~~~~
a.cc:16:17: warning: multi-character character constant [-Wmultichar]
   16 |   }else if(s == 'TUE'){
      |                 ^~~~~
a.cc:18:17: warning: multi-character character constant [-Wmultichar]
   18 |   }else if(s == 'MON'){
      |                 ^~~~~
a.cc:20:17: warning: multi-character character constant [-Wmultichar]
   20 |   }else if(s == 'SUN'){
      |                 ^~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'String' was not declared in this scope
    5 | String s;
      | ^~~~~~
a.cc:7:14: error: 's' was not declared in this scope
    7 |   scanf("%s",s);
      |              ^
Language: Java

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




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

package atcoder.abc146;

import java.util.Scanner;

public class A {
    public static void main(String[] args) throws Exception {
        final Scanner sc = new Scanner(System.in);
        final String input = sc.next();
        String[] days = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
        for (int i = 0; i < days.length; i++) {
            if (input.equals(days[i])) {
                System.out.println(7 - i);
                break;
            }
        }
    }
}


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

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

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

#include <stdio.h>

int main() {
	char c[3];
  	scanf("%d",&c);
  	switch(c) {
      	case "SAT" :
        	printf("1");
        	break;
        case "FRI" :
        	printf("2");
        	break;
        case "THU" :
        	printf("3");
        	break;
        case "WED" :
        	printf("4");
        	break;
        case "TUE" :
        	printf("5");
        	break;
        case "MON" :
        	printf("6");
        	break;
        case "SUN" :
        	printf("7");
        	break;
    }
  	return 0;
}

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

import java.util.Scanner;
 
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    long c = sc.nextInt();
    long ans = 0;
    for(long i = 1;;i++){
      int d = keta(i);
      if((a * i) + (b * d) > c){
        ans = i - 1;
        break;
      }
    }
    System.out.println(ans);
  }
        
  static int keta(int x){
    int ketaCounter = 1;
    for(long j = 10;;j *= 10){
      if(x < j){
        break;
      }
      ketaCounter++;    
    }
    return ketaCounter;
  }
        
}

Compiler output:
Main.java:11: error: incompatible types: possible lossy conversion from long to int
      int d = keta(i);
                   ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.util.Scanner;
 
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int ans = 0;
    for(int i = 1;;i++){
      int d = keta(i);
      if((a * i) + (b * d) > c){
        ans = i - 1;
        break;
      }
    }
    System.out.println(ans);
  }
        
  int keta(int x){
    int ketaCounter = 1;
    for(int j = 10;;j *= 10){
      if(x < j){
        break;
      }
      ketaCounter++;    
    }
    return ketaCounter;
  }
        
}

Compiler output:
Main.java:11: error: non-static method keta(int) cannot be referenced from a static context
      int d = keta(i);
              ^
1 error
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:8: error: cannot find symbol
      case SAT: System.out.println("1"); break;
           ^
  symbol:   variable SAT
  location: class Main
Main.java:9: error: cannot find symbol
      case FRI: System.out.println("2"); break; 
           ^
  symbol:   variable FRI
  location: class Main
Main.java:10: error: cannot find symbol
      case THU: System.out.println("3"); break;
           ^
  symbol:   variable THU
  location: class Main
Main.java:11: error: cannot find symbol
      case WEN: System.out.println("4"); break;
           ^
  symbol:   variable WEN
  location: class Main
Main.java:12: error: cannot find symbol
      case TUE: System.out.println("5"); break;        
           ^
  symbol:   variable TUE
  location: class Main
Main.java:13: error: cannot find symbol
      case MUN: System.out.println("6"); break;    
           ^
  symbol:   variable MUN
  location: class Main
Main.java:14: error: cannot find symbol
      case SUN: System.out.println("7"); break;   
           ^
  symbol:   variable SUN
  location: class Main
7 errors
Language: C++

main = interact main'
main' = show . f . head . lines

f "MON" = 6
f "TUE" = 5
f "WED" = 4
f "THU" = 3
f "FRI" = 2
f "SAT" = 1
f "SUN" = 7
f _ = 0 

Compiler output:
a.cc:1:21: warning: missing terminating ' character
    1 | main = interact main'
      |                     ^
a.cc:1:21: error: missing terminating ' character
a.cc:2:5: warning: missing terminating ' character
    2 | main' = show . f . head . lines
      |     ^
a.cc:2:5: error: missing terminating ' character
    2 | main' = show . f . head . lines
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'main' does not name a type
    1 | main = interact main'
      | ^~~~
Language: C++

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


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

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 's' was not declared in this scope
    8 |    cin >> s;
      |           ^
Language: C

#include<stdio.h>

#define DAYOFWEEK 7
int main(){
  char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
  char s[4];
  int i;
  
  scanf("%s", s);
  for(i=0; i<DAYOFWEEK; i++){
    if(strcmp(s, day[i]) == 0){
      break;
    }
  }
  
  printf("%d", DAYOFWEEK-i);
}

Compiler output:
main.c: In function 'main':
main.c:5:33: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                 ^~~~~
main.c:5:33: note: (near initialization for 'day')
main.c:5:40: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                        ^~~~~
main.c:5:40: note: (near initialization for 'day')
main.c:5:47: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                               ^~~~~
main.c:5:47: note: (near initialization for 'day')
main.c:5:54: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                                      ^~~~~
main.c:5:54: note: (near initialization for 'day')
main.c:5:61: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                                             ^~~~~
main.c:5:61: note: (near initialization for 'day')
main.c:5:68: error: excess elements in 'char[7]' initializer
    5 |   char day[DAYOFWEEK] = {"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"};
      |                                                                    ^~~~~
main.c:5:68: note: (near initialization for 'day')
main.c:11:8: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
   11 |     if(strcmp(s, day[i]) == 0){
      |        ^~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strcmp'
    1 | #include<stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:11:21: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   11 |     if(strcmp(s, day[i]) == 0){
      |                  ~~~^~~
      |                     |
      |                     char
main.c:11:21: note: expected 'const char *' but argument is of type 'char'
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s;
  enum dw {MON,TUE,WED,THU,FRI,SAT,SUN};
  enum dw day;
  cin>>s;
  day=s;
  cout<<(SUN-day?SUN-day:7);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'main()::dw' in assignment
    8 |   day=s;
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include"bits/stdc++.h"
#include "prettyprint.hpp"
#include <math.h>

using namespace std;

#define rep(i, n) for(ll i=0; i<n; i++)
#define repr(i, n) for(ll i=n; i>=0; i--)
#define reps(i, s, e) for(ll i=s; i<e; i++)
#define all(x) x.begin(),x.end()

typedef long long ll;


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

	int ans;

	if(s == "SUN") ans = 7;
	else if(s == "MON") ans = 6;
	else if(s == "TUE") ans = 5;
	else if(s == "WED") ans = 4;
	else if(s == "THU") ans = 3;
	else if(s == "FRI") ans = 2;
	else if(s == "SAT") ans = 1;

	cout << ans << endl;
}


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

#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <cmath>
#include <climits>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <array>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
using namespace std;
#define io() ios_base::sync_with_stdio(false); cin.tie(nullptr)
#define ll long long
#define ull unsigned long long
#define ui unsigned int
#define us unsigned short
#define fi first
#define se second
#define IN(i,l,r) (l<i&&i<r)
#define LINR(i,l,r) (l<=i&&i<=r)
#define LIN(i,l,r) (l<=i&&i<r)
#define INR(i,l,r) (l<i&&i<=r)
#define v(T) vector<T>
#define p(T, N) pair<T, N>
#define tp(A, B, C) tuple<A, B, C>
#define ii p(int, int)
#define vi v(int)
#define vii v(p(int, int))
#define vvi v(v(int))
#define vl v(long long)
#define vll v(p(long long, long long))
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define qsort(a) sort(all(a))
#define qsortd(a) sort(all(a), greater<>())
#define qsortf(a, f) sort(all(a), f)
#define qsortsi(v) sort(v.begin(), v.end(), [](pair<int, int> a, pair<int, int> b){return a.se < b.se;})
#define pb(n) push_back(n)
#define eb(n) emplace_back(n)
#define pp(a, b) emplace_back(make_pair(a, b))
#define pt(a, b, c) emplace_back(make_tuple(a, b, c))
#define elif else if
#define fori(i, n) for(ll i = 0; i < n; ++i)
#define foris(i, a, b) for(ll i = a; i < b; ++i)
#define forise(i, a, b) for(ll i = a; i <= b; ++i)
#define ford(i, n) for(ll i = n; i >= 0; --i)
#define fords(i, a, b) for(ll i = a; i >= b; --i)
#define fordse(i, a, b) for(ll i = a; i > b; --i)
#define fora(i, a) for (auto &i: a)
#define rev(a) reverse(a.begin(), a.end())
#define revf(a, b, c) (reverse(a.begin() + b, a.begin() + c))
#define digits(i) (int)((log(i)/(log(10))+1)
#define umap unordered_map
#define uset unordered_set
#define nl '\n'
#define fileio(in, out) freopen(in, "r", stdin); freopen(out, "w", stdout)
const int mod = 1000000007;

string inp;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:85:10: error: switch quantity not an integer
   85 |   switch(inp) {
      |          ^~~
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String day = scanner.next();
		switch(day) {
			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;
			case 'SUN':
				System.out.println(7);
				break;
			default:
				break;
		}
		scanner.close();
	}
}

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

#include <bits/stdc++.h>
using namespace std ;
string week[7]={"SAT","MON","TUE","WED","THU","FRI","SUN"}
int main() {
	int n ;
    cin >> n ;
  cout << week[n-1] << endl ;
  	return 0 ;
}

Compiler output:
a.cc:4:1: error: expected ',' or ';' before 'int'
    4 | int main() {
      | ^~~
Language: C

clude<stdio.h>
 
int main(){
  int target=7;
  char day_p[5];
  int ifday;
  int SUN=0,MON=1,TUE=2,WED=3,THU=4,FRI=5,SAT=6;
  scanf("%s",&day_p);
  char day[5]=day_p;
  if(day='SUN'){ifday=SUN;}
  if(day='SAT'){ifday=SAT;}
  if(day='MON'){ifday=MON;}
  if(day='TUE'){ifday=TUE;}
  if(day='WED'){ifday=WED;}
  if(day='THU'){ifday=THU;}
  if(day='FRI'){ifday=FRI;}
  
  printf("%d",target-ifday);
}

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | clude<stdio.h>
      |      ^
main.c:10:10: warning: multi-character character constant [-Wmultichar]
   10 |   if(day='SUN'){ifday=SUN;}
      |          ^~~~~
main.c:11:10: warning: multi-character character constant [-Wmultichar]
   11 |   if(day='SAT'){ifday=SAT;}
      |          ^~~~~
main.c:12:10: warning: multi-character character constant [-Wmultichar]
   12 |   if(day='MON'){ifday=MON;}
      |          ^~~~~
main.c:13:10: warning: multi-character character constant [-Wmultichar]
   13 |   if(day='TUE'){ifday=TUE;}
      |          ^~~~~
main.c:14:10: warning: multi-character character constant [-Wmultichar]
   14 |   if(day='WED'){ifday=WED;}
      |          ^~~~~
main.c:15:10: warning: multi-character character constant [-Wmultichar]
   15 |   if(day='THU'){ifday=THU;}
      |          ^~~~~
main.c:16:10: warning: multi-character character constant [-Wmultichar]
   16 |   if(day='FRI'){ifday=FRI;}
      |          ^~~~~
Language: C

clude<stdio.h>
 
int main(){
  int target=7;
  char day_p[5];
  int ifday;
  int SUN=0,MON=1,TUE=2,WED=3,THU=4,FRI=5,SAT=6;
  
  scanf("%s",&day_p);
  char day[5];
  day=day_p;
  if(day=='SUN'){ifday=SUN;}
  if(day=='SAT'){ifday=SAT;}
  if(day=='MON'){ifday=MON;}
  if(day=='TUE'){ifday=TUE;}
  if(day=='WED'){ifday=WED;}
  if(day=='THU'){ifday=THU;}
  if(day=='FRI'){ifday=FRI;}
  
  printf("%d",target-ifday);
}

Compiler output:
main.c:1:6: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | clude<stdio.h>
      |      ^
main.c:12:11: warning: multi-character character constant [-Wmultichar]
   12 |   if(day=='SUN'){ifday=SUN;}
      |           ^~~~~
main.c:13:11: warning: multi-character character constant [-Wmultichar]
   13 |   if(day=='SAT'){ifday=SAT;}
      |           ^~~~~
main.c:14:11: warning: multi-character character constant [-Wmultichar]
   14 |   if(day=='MON'){ifday=MON;}
      |           ^~~~~
main.c:15:11: warning: multi-character character constant [-Wmultichar]
   15 |   if(day=='TUE'){ifday=TUE;}
      |           ^~~~~
main.c:16:11: warning: multi-character character constant [-Wmultichar]
   16 |   if(day=='WED'){ifday=WED;}
      |           ^~~~~
main.c:17:11: warning: multi-character character constant [-Wmultichar]
   17 |   if(day=='THU'){ifday=THU;}
      |           ^~~~~
main.c:18:11: warning: multi-character character constant [-Wmultichar]
   18 |   if(day=='FRI'){ifday=FRI;}
      |           ^~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:15: error: 'day_p' undeclared (first use in this function); did you mean 'day'?
    9 |   scanf("%s",&day_p);
      |               ^~~~~
      |               day
main.c:9:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: conflicting types for 'day'; have 'char'
   10 |   char day=day_p;
      |        ^~~
main.c:5:8: note: previous declaration of 'day' with type 'char[5]'
    5 |   char day[5];
      |        ^~~
main.c:11:11: warning: multi-character character constant [-Wmultichar]
   11 |   if(day=='SUN'){ifday=SUN;}
      |           ^~~~~
main.c:12:11: warning: multi-character character constant [-Wmultichar]
   12 |   if(day=='SAT'){ifday=SAT;}
      |           ^~~~~
main.c:13:11: warning: multi-character character constant [-Wmultichar]
   13 |   if(day=='MON'){ifday=MON;}
      |           ^~~~~
main.c:14:11: warning: multi-character character constant [-Wmultichar]
   14 |   if(day=='TUE'){ifday=TUE;}
      |           ^~~~~
main.c:15:11: warning: multi-character character constant [-Wmultichar]
   15 |   if(day=='WED'){ifday=WED;}
      |           ^~~~~
main.c:16:11: warning: multi-character character constant [-Wmultichar]
   16 |   if(day=='THU'){ifday=THU;}
      |           ^~~~~
main.c:17:11: warning: multi-character character constant [-Wmultichar]
   17 |   if(day=='FRI'){ifday=FRI;}
      |           ^~~~~
Language: C++

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

long long a,b,x;

int main()
{
	int len(long long x);
	bool check(long long nn);
	
	cin>>a>>b>>x;
	check long long L=0,r=x,mid,ans=0;
	
	while(L<=r){
		mid=(L+r)/2;
		if(check(mid)){
			ans=mid;
			L=mid+1;
		}
		else{
			r=mid-1;
		}
	}
	
	cout<<ans<<endl;
	return 0;	
}

int len(long long nn){
	int tmp=0;
	
	while (nn!=0){
		tmp++;
		nn/=10;
	}
	return tmp;
}

bool check(long long nn){
	long long sum=0LL;
	
	sum=a*nn+b*len(nn);
	return sum<=x;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before 'long'
   12 |         check long long L=0,r=x,mid,ans=0;
      |              ^~~~~
      |              ;
a.cc:14:15: error: 'L' was not declared in this scope
   14 |         while(L<=r){
      |               ^
a.cc:14:18: error: 'r' was not declared in this scope
   14 |         while(L<=r){
      |                  ^
a.cc:15:17: error: 'mid' was not declared in this scope
   15 |                 mid=(L+r)/2;
      |                 ^~~
a.cc:17:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |                         ans=mid;
      |                         ^~~
      |                         abs
a.cc:25:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |         cout<<ans<<endl;
      |               ^~~
      |               abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  map<string ,int> m;
  m[SUN]=7;
  m[MON]=6;
  m[TUE]=5;
  m[WED]=4;
  m[THU]=3;
  m[FRI]=2;
  m[SAT]=1;
  
  cout<<m[s];
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'SUN' was not declared in this scope
    7 |   m[SUN]=7;
      |     ^~~
a.cc:8:5: error: 'MON' was not declared in this scope
    8 |   m[MON]=6;
      |     ^~~
a.cc:9:5: error: 'TUE' was not declared in this scope
    9 |   m[TUE]=5;
      |     ^~~
a.cc:10:5: error: 'WED' was not declared in this scope
   10 |   m[WED]=4;
      |     ^~~
a.cc:11:5: error: 'THU' was not declared in this scope
   11 |   m[THU]=3;
      |     ^~~
a.cc:12:5: error: 'FRI' was not declared in this scope
   12 |   m[FRI]=2;
      |     ^~~
a.cc:13:5: error: 'SAT' was not declared in this scope
   13 |   m[SAT]=1;
      |     ^~~
Language: C++

class Day(Enum):
    SAT = 1
    FRI = 2
    THU = 3
    WED = 4
    TUE = 5
    MON = 6
    SUN = 7


def next_sunday(day):
    today = Day[day]
    return today.value
    

def main():
	in = input()
    print(next_sunday(in))
      
      
main()

Compiler output:
a.cc:1:16: error: expected initializer before ':' token
    1 | class Day(Enum):
      |                ^
Language: Java

package atcoder;

import java.util.Scanner;

public class task1 {

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

		String month = scan.next();

		if(month.equals("SUN"))		System.out.println("7");
		else if(month.equals("MON"))		System.out.println("6");
		else if(month.equals("TUE"))		System.out.println("5");
		else if(month.equals("WED"))		System.out.println("4");
		else if(month.equals("THU"))		System.out.println("3");
		else if(month.equals("FRI"))		System.out.println("2");
		else if(month.equals("SAT"))		System.out.println("1");

	}

}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'SUN' was not declared in this scope
    7 |   if(s == SUN) cout << 7;
      |           ^~~
a.cc:8:11: error: 'MON' was not declared in this scope
    8 |   if(s == MON) cout << 6;
      |           ^~~
a.cc:9:11: error: 'TUE' was not declared in this scope
    9 |   if(s == TUE) cout << 5;
      |           ^~~
a.cc:10:11: error: 'WED' was not declared in this scope
   10 |   if(s == WED) cout << 4;
      |           ^~~
a.cc:11:11: error: 'THU' was not declared in this scope
   11 |   if(s == THU) cout << 3;
      |           ^~~
a.cc:12:11: error: 'FRI' was not declared in this scope
   12 |   if(s == FRI) cout << 2;
      |           ^~~
a.cc:13:11: error: 'SAT' was not declared in this scope
   13 |   if(s == SAT) cout << 1;
      |           ^~~
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  if(str.equals("SUN")){
    i = 7;
  }else if(str.equals("MON")){
    i=6;}
    else if(str.equals("TUE")){
      i=5;}
      else if(str.equals("WED")){
        i=4;}
  else if(str.equals("THU")){
    i=3;}
  else if(str.equals("FRI")){
    i=2;}
  else{(str.equals("SAT"))
    i=1;}
  System.out.print(i);
  }
  }


Compiler output:
Main.java:19: error: not a statement
  else{(str.equals("SAT"))
       ^
Main.java:19: error: ';' expected
  else{(str.equals("SAT"))
                          ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  if(str.equals("SUN")){
    i = 7;
  }else if(str.equals("MON")){
    i=6;}
    else if(str.equals("TUE")){
      i=5;}
      else if(str.equals("WED")){
        i=4;}
  else if(str.equals("THU")){
    i=3;}
  else if(str.equals("FRI")){
    i=2;}
  else{str.equals("SAT")
    i=1;}
  System.out.print(i);
  }
  }


Compiler output:
Main.java:19: error: ';' expected
  else{str.equals("SAT")
                        ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  if(str.equals("SUN")){
    i = 7;
  }else if(str.equals("MON")){
    i=6;}
    else if(str.equals("TUE")){
      i=5;}
      else if(str.equals("WED")){
        i=4;}
  else if(str.equals("THU")){
    i=3;}
  else if(str.equals("FRI")){
    i=2;}
  else{str.equals("SAT")){
    i=1;}
  System.out.print(i);
  }
  }


Compiler output:
Main.java:19: error: ';' expected
  else{str.equals("SAT")){
                        ^
Main.java:23: error: reached end of file while parsing
  }
   ^
2 errors
Language: C++

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

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

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  String[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  String str1 = "SUN";
  int i = 0;
  if(str.equals(str1)){
    i = 7;
  }else{
  while(!(str.equals(s[i]))){
    i = i + 1;
    }
  System.out.print(i);
  }
  }

Compiler output:
Main.java:17: error: reached end of file while parsing
  }
   ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  int[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  while((str.equals(s[i + 1])){
    i = i + 1;
    }
  System.out.print(i);
  }
  }

Compiler output:
Main.java:8: error: ')' expected
  while((str.equals(s[i + 1])){
                              ^
1 error
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main(
      |     ^~~~
a.cc:5:16: error: expected primary-expression before 's'
    5 |         string s;
      |                ^
a.cc:5:16: error: expected '}' before 's'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:5:15: error: expected ')' before 's'
    5 |         string s;
      |               ^~
      |               )
a.cc:3:9: note: to match this '('
    3 | int main(
      |         ^
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin>>s;
      |         ^~~
a.cc:7:9: error: expected unqualified-id before 'if'
    7 |         if(s=="SUN") puts("7");
      |         ^~
a.cc:8:9: error: expected unqualified-id before 'if'
    8 |         if(s=="MON") puts("6");
      |         ^~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if(s=="TUE") puts("5");
      |         ^~
a.cc:10:9: error: expected unqualified-id before 'if'
   10 |         if(s=="WED") puts("4");
      |         ^~
a.cc:11:9: error: expected unqualified-id before 'if'
   11 |         if(s=="THU") puts("3");
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'if'
   12 |         if(s=="FRI") puts("2");
      |         ^~
a.cc:13:9: error: expected unqualified-id before 'if'
   13 |         if(s=="SAT") puts("1");
      |         ^~
a.cc:14:9: error: expected unqualified-id before 'return'
   14 |         return 0;
      |         ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: Java

import java.util.Scanner;
public class Main{
public static void main(String[] args){
  int[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  while(！(str.equals(s[i + 1]))){
    i = i + 1;
    }
  System.out.print(i);
  }
  }

Compiler output:
Main.java:8: error: illegal character: '\uff01'
  while(?(str.equals(s[i + 1]))){
        ^
Main.java:8: error: ';' expected
  while(?(str.equals(s[i + 1]))){
                              ^
2 errors
Language: Java

import java.util.＊;
public class Main{
public static void main(String[] args){
  int[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  while(！(str.equals(s[i + 1]))){
    i = i + 1;
    }
  System.out.print(i);
  }
  }

Compiler output:
Main.java:1: error: illegal character: '\uff0a'
import java.util.?;
                 ^
Main.java:8: error: illegal character: '\uff01'
  while(?(str.equals(s[i + 1]))){
        ^
Main.java:8: error: ';' expected
  while(?(str.equals(s[i + 1]))){
                              ^
3 errors
Language: Java

import java.util.＊;
public class Main{
public static void main(String[] args){
  int[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
  Scanner sc = new Scanner(System.in);
  String str = sc.next();
  int i = 0;
  while(str ！= s[i + 1]){
    i = i + 1;
    }
  System.out.print(i);
  }
  }

Compiler output:
Main.java:1: error: illegal character: '\uff0a'
import java.util.?;
                 ^
Main.java:8: error: illegal character: '\uff01'
  while(str ?= s[i + 1]){
            ^
Main.java:8: error: not a statement
  while(str ?= s[i + 1]){
                ^
Main.java:8: error: ';' expected
  while(str ?= s[i + 1]){
                       ^
4 errors
Language: C++

use std::io::*;
use std::str::FromStr;

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char) 
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
    let s: String = read();

    println!("{}", match s.as_str() {
        "SUN" => 7,
        "MON"=> 6,
        "TUE"=> 5,
        "WED"=> 4,
        "THU"=> 3,
        "FRI"=> 2,
        "SAT"=> 1,
        _ => 0,
    });
    
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn read<T: FromStr>() -> T {
      | ^~
a.cc:16:1: error: 'fn' does not name a type
   16 | fn main() {
      | ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
char ss[4];
int main()
{
    scanf("%s",ss);
    if(ss='SUN')printf("7");
    if(ss='MON')printf("6");
    if(ss='TUE')printf("5");
    if(ss='WED')printf("4");
    if(ss='THU')printf("3");
    if(ss='FRI')printf("2");
    if(ss='STA')printf("1");
    return 0 ;
}


Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     if(ss='SUN')printf("7");
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     if(ss='MON')printf("6");
      |           ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     if(ss='TUE')printf("5");
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     if(ss='WED')printf("4");
      |           ^~~~~
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     if(ss='THU')printf("3");
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     if(ss='FRI')printf("2");
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     if(ss='STA')printf("1");
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:8:10: error: incompatible types in assignment of 'int' to 'char [4]'
    8 |     if(ss='SUN')printf("7");
      |        ~~^~~~~~
a.cc:9:10: error: incompatible types in assignment of 'int' to 'char [4]'
    9 |     if(ss='MON')printf("6");
      |        ~~^~~~~~
a.cc:10:10: error: incompatible types in assignment of 'int' to 'char [4]'
   10 |     if(ss='TUE')printf("5");
      |        ~~^~~~~~
a.cc:11:10: error: incompatible types in assignment of 'int' to 'char [4]'
   11 |     if(ss='WED')printf("4");
      |        ~~^~~~~~
a.cc:12:10: error: incompatible types in assignment of 'int' to 'char [4]'
   12 |     if(ss='THU')printf("3");
      |        ~~^~~~~~
a.cc:13:10: error: incompatible types in assignment of 'int' to 'char [4]'
   13 |     if(ss='FRI')printf("2");
      |        ~~^~~~~~
a.cc:14:10: error: incompatible types in assignment of 'int' to 'char [4]'
   14 |     if(ss='STA')printf("1");
      |        ~~^~~~~~