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

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected identifier before string constant
    9 |   string d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
      |               ^~~~~
a.cc:9:20: error: expected ']' before ',' token
    9 |   string d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
      |                    ^
      |                    ]
a.cc: In lambda function:
a.cc:9:20: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:9:14: error: conversion from 'main()::<lambda()>' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
    9 |   string d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
      |              ^~~~~~
a.cc:9:22: error: expected unqualified-id before string constant
    9 |   string d = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
      |                      ^~~~~
a.cc:10:12: error: expected unqualified-id before '=' token
   10 |   for (int = 0; i < d.size(); i ++) {
      |            ^
a.cc:10:11: error: expected ';' before '=' token
   10 |   for (int = 0; i < d.size(); i ++) {
      |           ^~
      |           ;
a.cc:10:12: error: expected primary-expression before '=' token
   10 |   for (int = 0; i < d.size(); i ++) {
      |            ^
a.cc:10:17: error: 'i' was not declared in this scope
   10 |   for (int = 0; i < d.size(); i ++) {
      |                 ^
a.cc:10:29: error: expected ')' before ';' token
   10 |   for (int = 0; i < d.size(); i ++) {
      |       ~                     ^
      |                             )
a.cc:10:31: error: 'i' was not declared in this scope
   10 |   for (int = 0; i < d.size(); i ++) {
      |                               ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int SUN, MON, TUE, WED, THU, FRI, SAT;
  char S;
  scanf("%s",S);
  //int s = atoi("S");
  SUN = 7, MON = 1, TUE = 2, WED = 3, THU = 4, FRI = 5, SAT = 6;
  printf("%d", 7-s);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 's' was not declared in this scope
    9 |   printf("%d", 7-s);
      |                  ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int SUN, MON, TUE, WED, THU, FRI, SAT;
  int S;
  scanf("%d",S);
  //int s = atoi("S");
  SUN = 7, MON = 1, TUE = 2, WED = 3, THU = 4, FRI = 5, SAT = 6;
  printf("%d", 7-s);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 's' was not declared in this scope
    9 |   printf("%d", 7-s);
      |                  ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String s = sc.nextInt();
    String[] str = {"","SAT","FRI","THU","WED","TUE","MON","SUN"};
    for(int i=0;i<=7;i++)if(str[i].equals(s)){
      System.out.println(i);
      return;
    }
  }
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to String
    String s = sc.nextInt();
                         ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'atoi' was not declared in this scope
    5 |   int s = atoi("S");
      |           ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:57: error: 'SUT' was not declared in this scope; did you mean 'SAT'?
    5 |   SUN = 7, MON = 1, TUE = 2, WED = 3, THU = 4, FRI = 5, SUT = 6;
      |                                                         ^~~
      |                                                         SAT
Language: C++

next_sun = {
    'SUN':7,
    'MON':6,
    'TUE':5,
    'WED':4,
    'THU':3,
    'FRI':2,
    'SAT':1
}

to_SUN = next_sun[input()]

print(to_SUN)

Compiler output:
a.cc:2:5: warning: multi-character character constant [-Wmultichar]
    2 |     'SUN':7,
      |     ^~~~~
a.cc:3:5: warning: multi-character character constant [-Wmultichar]
    3 |     'MON':6,
      |     ^~~~~
a.cc:4:5: warning: multi-character character constant [-Wmultichar]
    4 |     'TUE':5,
      |     ^~~~~
a.cc:5:5: warning: multi-character character constant [-Wmultichar]
    5 |     'WED':4,
      |     ^~~~~
a.cc:6:5: warning: multi-character character constant [-Wmultichar]
    6 |     'THU':3,
      |     ^~~~~
a.cc:7:5: warning: multi-character character constant [-Wmultichar]
    7 |     'FRI':2,
      |     ^~~~~
a.cc:8:5: warning: multi-character character constant [-Wmultichar]
    8 |     'SAT':1
      |     ^~~~~
a.cc:1:1: error: 'next_sun' does not name a type
    1 | next_sun = {
      | ^~~~~~~~
a.cc:11:1: error: 'to_SUN' does not name a type
   11 | to_SUN = next_sun[input()]
      | ^~~~~~
Language: Java

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

    String s = input.nextLine();

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

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

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

    String s = input.nextLine();

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

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

import java.util.Scanner;

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

    String s = input.nextLine();

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


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

#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=int(a);i<int(b);++i)
using namespace std;
typedef long long ll;
int INF = (1LL << 30) - 1;
int MOD = 1e9+7;
main(){
    string str[] = ["SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"];
    string S;
    cin >> S;
    rep(i,0,N){
        if(str[i] == S){
            cout << i + 1 << endl;
        }
    }
}

Compiler output:
a.cc:7:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    7 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:21: error: expected identifier before string constant
    8 |     string str[] = ["SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"];
      |                     ^~~~~
a.cc:8:26: error: expected ']' before ',' token
    8 |     string str[] = ["SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"];
      |                          ^
      |                          ]
a.cc: In lambda function:
a.cc:8:26: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:8:20: error: initializer fails to determine size of 'str'
    8 |     string str[] = ["SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"];
      |                    ^~~~~~
a.cc:8:20: error: array must be initialized with a brace-enclosed initializer
a.cc:8:28: error: expected unqualified-id before string constant
    8 |     string str[] = ["SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"];
      |                            ^~~~~
a.cc:11:13: error: 'N' was not declared in this scope
   11 |     rep(i,0,N){
      |             ^
a.cc:2:43: note: in definition of macro 'rep'
    2 | #define rep(i,a,b) for(int i=int(a);i<int(b);++i)
      |                                           ^
Language: C++


#include"stdafx.h"
#include<string>
#include<math.h>
#include<iostream>

using namespace std;

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



Compiler output:
a.cc:2:9: fatal error: stdafx.h: No such file or directory
    2 | #include"stdafx.h"
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

char given_string[3];
char days[7][3] = {"SAT","FRI","THU","WED","TUE","MON","SUN"}

int main() {
  scanf("%s", given_string);
  for (size_t i = 0; i < 7; i++) {
    if (days[i] == given_string) {
      printf("%d", i + 1);
    }
  }
  return 0;
}


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

#include <stdio.h>

char given_string[3];
char days[7][3] = ["SAT","FRI","THU","WED","TUE","MON","SUN"]

int main() {
  scanf("%s", given_string);
  for (size_t i = 0; i < 7; i++) {
    if (days[i] == given_string) {
      printf("%d", i + 1);
    }
  }
  return 0;
}


Compiler output:
main.c:4:19: error: expected expression before '[' token
    4 | char days[7][3] = ["SAT","FRI","THU","WED","TUE","MON","SUN"]
      |                   ^
Language: C

#include <stdio.h>

char given_string[3];
char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]

int main() {
  scanf("%s", given_string);
  for (size_t i = 0; i < 7; i++) {
    if (days[i] == given_string) {
      printf("%d", i + 1);
    }
  }
  return 0;
}


Compiler output:
main.c:4:19: error: expected expression before '[' token
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                   ^
main.c:4:20: error: 'SAT' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                    ^~~
main.c:4:24: error: 'FRI' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                        ^~~
main.c:4:28: error: 'THU' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                            ^~~
main.c:4:32: error: 'WED' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                                ^~~
main.c:4:36: error: 'TUE' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                                    ^~~
main.c:4:40: error: 'MON' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                                        ^~~
main.c:4:44: error: 'SUN' undeclared here (not in a function)
    4 | char days[7][3] = [SAT,FRI,THU,WED,TUE,MON,SUN]
      |                                            ^~~
Language: C

#include <stdio.h>

char given_string[3];
char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}

int main() {
  scanf("%s", given_string);
  for (size_t i = 0; i < 7; i++) {
    if (days[i] == given_string) {
      printf("%d", i + 1);
    }
  }
  return 0;
}


Compiler output:
main.c:4:20: error: 'SAT' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                    ^~~
main.c:4:24: error: 'FRI' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                        ^~~
main.c:4:28: error: 'THU' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                            ^~~
main.c:4:32: error: 'WED' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                ^~~
main.c:4:36: error: 'TUE' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                    ^~~
main.c:4:40: error: 'MON' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                        ^~~
main.c:4:44: error: 'SUN' undeclared here (not in a function)
    4 | char days[7][3] = {SAT,FRI,THU,WED,TUE,MON,SUN}
      |                                            ^~~
main.c:6:1: error: expected ',' or ';' before 'int'
    6 | int main() {
      | ^~~
Language: C++

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

using namespace std;
int main()
{
    int n;
    int i;
    char s[10000];
    scanf("%d",&n);
    scanf("%s", s);
//    for(i=0; s[i])
    
    for (i=0; i<strlen(s); i++){
        int tmp;
        tmp = (((s[i]+n)-65)%26)+65;
        printf("%c",tmp);
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'strlen' was not declared in this scope
   14 |     for (i=0; i<strlen(s); i++){
      |                 ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<string>
  +++ |+#include <cstring>
    3 |
Language: C

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

using namespace std;
int main()
{
    int n;
    int i;
    char s[10000];
    scanf("%d",&n);
    scanf("%s", s);
    for (i=0; i<strlen(s); i++){
        int tmp;
        tmp = (((s[i]+n)-65)%26)+65;
        printf("%c",tmp);
    }
    return 0;
}


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

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

using namespace std;
int main()
{

    char a[200000];

    scanf("%s", a);
    if (strcmp(a,"SUN")==0)
    {
        printf("7");
    }
    else if(strcmp(a,"MON") == 0)
    {
        printf("6");
    }
    else if(strcmp(a,"TUE") == 0)
    {
        printf("5");
    }
    else if(strcmp(a,"WED") == 0)
    {
        printf("4");
    }
    else if(strcmp(a,"THU") == 0)
    {
        printf("3");
    }
    else if(strcmp(a,"FRI") == 0)
    {
        printf("2");
    }
    else if(strcmp(a,"SAT") == 0)
    {
        printf("1");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'strcmp' was not declared in this scope
   11 |     if (strcmp(a,"SUN")==0)
      |         ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <string>
  +++ |+#include <cstring>
    3 |
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'SUN' was not declared in this scope
    7 |   if(s==SUN){
      |         ^~~
a.cc:11:14: error: 'MON' was not declared in this scope
   11 |   else if(s==MON){
      |              ^~~
a.cc:15:14: error: 'TUE' was not declared in this scope
   15 |   else if(s==TUE){
      |              ^~~
a.cc:19:14: error: 'WED' was not declared in this scope
   19 |   else if(s==WED){
      |              ^~~
a.cc:23:14: error: 'THU' was not declared in this scope
   23 |   else if(s==THU){
      |              ^~~
a.cc:27:14: error: 'FRI' was not declared in this scope
   27 |   else if(s==FRI){
      |              ^~~
a.cc:31:14: error: 'SAT' was not declared in this scope
   31 |   else if(s==SAT){
      |              ^~~
Language: C++

S = input()
days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
print(7 - days.index(S))

Compiler output:
a.cc:2:9: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |         ^~~~~
a.cc:2:16: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                ^~~~~
a.cc:2:22: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                      ^~~~~
a.cc:2:28: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                            ^~~~~
a.cc:2:34: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                                  ^~~~~
a.cc:2:40: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                                        ^~~~~
a.cc:2:46: warning: multi-character character constant [-Wmultichar]
    2 | days = ['SUN', 'MON','TUE','WED','THU','FRI','SAT']
      |                                              ^~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: C++

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

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

#include<iostream>
using namespace std;
int main()
  {
  string s;
  int n;
  cin>>s;
  switch(s[0])
    {
      case 'S':
      if(s[1]=='A')
        n=1;
      else
        n=7;
      break;
      case 'M':
      n=6;
      break;
      case 'T':
      if(s[1]=='U')
        n=5;
      else
        n=3;
      break;
      case 'W':
      n=4;
      break;
      case 'F':
      n=2;
     see
    }
    cout<<n;
  return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:30:6: error: 'see' was not declared in this scope
   30 |      see
      |      ^~~
Language: C++

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

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

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

int main(){
#ifdef LOCAL
	freopen("inp.txt", "r", stdin );
	freopen("ans.txt", "w", stdout);
#endif
	ios::sync_with_stdio(false);
	cin.tie(0);
	string s;
	cin >> s;
	switch(s){
		case "SUN": cout << 7 << '\n';
		case "MON": cout << 6 << '\n';
		case "TUE": cout << 5 << '\n';
		case "WED": cout << 4 << '\n';
		case "THU": cout << 3 << '\n';
		case "FRI": cout << 2 << '\n';
		case "SAT": cout << 1 << '\n';
	}
}


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

using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    string s;
    cin >> s;
    int ans = 0;
    if (s == "SUN") {
        ans = 6;
    } else if (s == "MON") {
        ans = 5;
    } else if (s == "TUE") {
        ans = 4;
    } else if (s == "WED") {
        ans = 3;
    } else if (s == "THU") {
        ans = 2;
    } else if (s == "FRI") {
        ans = 1;
    } else if (s == "SAT") {
        ans = 0;
    }
    cout << ans + 1 << "\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'ios_base' has not been declared
    4 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin.tie(nullptr);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:5: error: 'string' was not declared in this scope
    6 |     string s;
      |     ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin >> s;
      |            ^
a.cc:24:5: error: 'cout' was not declared in this scope
   24 |     cout << ans + 1 << "\n";
      |     ^~~~
a.cc:24:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

using namespace std;

int main() {
  string s;
  int ans = 1;
  cin >> s;
  switch (s) {
    case "SUN":
      ans = 7;
      break;
    case "MON":
      ans = 6;
      break;
    case "TUE":
      ans = 6;
      break;
    case "WED":
      ans = 6;
      break;
    case "THU":
      ans = 6;
      break;
    case "FRI":
      ans = 6;
      break;
    case "SAT":
      ans = 6;
      break;
  }
  cout << ans << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:30:3: error: 'cout' was not declared in this scope
   30 |   cout << ans << "\n";
      |   ^~~~
a.cc:30:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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


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

#include<bits/stdc++.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;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: switch quantity not an integer
    6 |         switch (s){
      |                 ^
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
String[] days={"MON","TUE","WED","THU","FRI","SAT","SUN"};
Scanner s=new Scanner(System.in);
  String in=s.next();
  int mark;
 	for(int i=0;i<days.length;i++){
    if(in.equals(days[i])){
      int ans=6-i;
      String zero="0";
      if(ans.equls(zero))
        ans=zero;
    System.out.println(ans);
      break;}
    }
}
}

Compiler output:
Main.java:12: error: int cannot be dereferenced
      if(ans.equls(zero))
            ^
Main.java:13: error: incompatible types: String cannot be converted to int
        ans=zero;
            ^
2 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
Scanner s=new Scanner(System.in);
  String in=s.next();
  int mark;
 	for(int i=0;i<days.length;i++){
    if(in.equals(days[i])){
      int ans=6-i;
      String zero="0";
      if(ans.equls(zero))
        ans=zero;
    System.out.println(ans);
      break;}
    }
}
}

Compiler output:
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
               ^
  symbol:   variable MON
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                   ^
  symbol:   variable TUE
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                       ^
  symbol:   variable WED
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                           ^
  symbol:   variable THU
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                               ^
  symbol:   variable FRI
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                                   ^
  symbol:   variable SAT
  location: class Main
Main.java:4: error: cannot find symbol
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
                                       ^
  symbol:   variable SUN
  location: class Main
Main.java:12: error: int cannot be dereferenced
      if(ans.equls(zero))
            ^
Main.java:13: error: incompatible types: String cannot be converted to int
        ans=zero;
            ^
9 errors
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
Scanner s=new Scanner(System.in);
  String in=s.next();
  int mark;
 	for(int i=0;i<days.length;i++){
    if(in.equals(days[i])){
      int ans=6-i;
      String zero="0";
      if(ans.equls(zero))
        ans=zero;
    System.out.println(ans);
      break;}
    }
}

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

inport java.util.*;
public class Main{
public static void main(String[] args){
String[] days={MON,TUE,WED,THU,FRI,SAT,SUN};
Scanner s=new Scanner(System.in);
  String in=s.next();
  int mark;
 	for(int i=0;i<days.length;i++){
    if(in.equals(days[i])){
      int ans=6-i;
      String zero="0";
      if(ans.equls(zero))
        ans=zero;
    System.out.println(ans);
      break;}
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.*;
^
Main.java:17: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author SakumaYujin
 */
import java.util.*;
public class NewClass {
    public static void main(String[] args){
        String weeksday[]={"SUN","MON","TUE","WED","THU","FRI","SAT"};
        
        Scanner sc = new Scanner(System.in);
        
        String todays=sc.next();
        int i=0;
        int result=0;
        if(todays=="SUN"){
            result=7;
        }else {
            while(todays!=weeksday[i]){
                i++;
            }
            result=7-i-1;
        }
        System.out.print(result);
       
        
        
        
    }
}


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

import java.util.HashMap;
import java.util.Scanner;

public class ABC146a{
	public static void main(String args[]){
		
		HashMap<String, Integer> day = new HashMap<String, Integer>();
		day.put("SUN",7);
		day.put("MON",6);
		day.put("TUE",5);
		day.put("WED",4);
		day.put("THU",3);
		day.put("FRI",2);
		day.put("SAT",1);

		Scanner sc = new Scanner(System.in);
		System.out.println(day.get(sc.next()));
	}
}


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

l =  ["SUN","MON","TUE","WED","THU","FRI","SAT"]
S = str(input())
print(7-l.index(S))

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

  #include<stdio.h>
#include<string.h>
  int main()
  {
    char ch[4]
    int SUN,MON,TUE,WED,THU,FRI,SAT;
    scanf("%s",ch);

    SUN=7;
    MON=6;
    TUE=5;
    WED=4;
    THU=3;
    FRI=2;
    SAT=1;

    printf("%d",ch);
      return 0;
    }


Compiler output:
main.c: In function 'main':
main.c:5:15: error: expected ';' before 'int'
    5 |     char ch[4]
      |               ^
      |               ;
    6 |     int SUN,MON,TUE,WED,THU,FRI,SAT;
      |     ~~~        
main.c:7:16: error: 'ch' undeclared (first use in this function); did you mean 'char'?
    7 |     scanf("%s",ch);
      |                ^~
      |                char
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |     char ch[4]
      |               ^
      |               ;
    5 |     int SUN,MON,TUE,WED,THU,FRI,SAT;
      |     ~~~        
main.c:6:16: error: 'ch' undeclared (first use in this function); did you mean 'char'?
    6 |     scanf("%s",ch);
      |                ^~
      |                char
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |     char ch[4]
      |               ^
      |               ;
    5 |     int SUN,MON,TUE,WED,THU,FRI,SAT;
      |     ~~~        
main.c:6:17: error: 'ch' undeclared (first use in this function); did you mean 'char'?
    6 |     scanf("%s",&ch);
      |                 ^~
      |                 char
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |     char ch[3]
      |               ^
      |               ;
    5 |     int SUN,MON,TUE,WED,THU,FRI,SAT;
      |     ~~~        
main.c:6:17: error: 'ch' undeclared (first use in this function); did you mean 'char'?
    6 |     scanf("%s",&ch);
      |                 ^~
      |                 char
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |     char ch[3]
      |               ^
      |               ;
    5 |     int SUN,MON,TUE,WED,THU,FRI,SAT;
      |     ~~~        
main.c:6:17: error: 'ch' undeclared (first use in this function); did you mean 'char'?
    6 |     scanf("%s",&ch);
      |                 ^~
      |                 char
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |     char ch[3]
      |               ^
      |               ;
    5 |     int SUN,MON,TUE,WED,THU,FRI,SAT
      |     ~~~        
main.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |     scanf("%s",&ch);
      |     ^~~~~
main.c:13:5: error: 'SAT' undeclared (first use in this function)
   13 |     SAT=1;
      |     ^~~
main.c:13:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: 'ch' undeclared (first use in this function); did you mean 'char'?
   14 |     printf("%d",ch);
      |                 ^~
      |                 char
main.c: At top level:
main.c:16:7: error: expected identifier or '(' before 'return'
   16 |       return 0;
      |       ^~~~~~
main.c:17:5: error: expected identifier or '(' before '}' token
   17 |     }
      |     ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:13: error: expected ';' before 'int'
    4 |   char ch[3]
      |             ^
      |             ;
    5 |   int SUN,MON,TUE,WED,THU,FRI,SAT
      |   ~~~        
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%s",&ch);
      |   ^~~~~
main.c:7:8: error: expected ';' before 'MON'
    7 |   SUN=7
      |        ^
      |        ;
    8 |   MON=6
      |   ~~~   
main.c: At top level:
main.c:16:5: error: expected identifier or '(' before 'return'
   16 |     return 0;
      |     ^~~~~~
main.c:17:3: error: expected identifier or '(' before '}' token
   17 |   }
      |   ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected identifier before string constant
    7 |   day = [" ","SAT","FRI","THU","WED","TUE","MON","SUN"];
      |          ^~~
a.cc:7:13: error: expected ']' before ',' token
    7 |   day = [" ","SAT","FRI","THU","WED","TUE","MON","SUN"];
      |             ^
      |             ]
a.cc: In lambda function:
a.cc:7:13: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:13: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'main()::<lambda()>')
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'const std::vector<std::__cxx11::basic_string<char> >&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::vector<std::__cxx11::basic_string<char> >&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::initializer_list<std::__cxx11::basic_string<char> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected identifier before string constant
    7 |   day = ["","MON","TUE","WED","THU","FRI","SAT","SUN"];
      |          ^~
a.cc:7:12: error: expected ']' before ',' token
    7 |   day = ["","MON","TUE","WED","THU","FRI","SAT","SUN"];
      |            ^
      |            ]
a.cc: In lambda function:
a.cc:7:12: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:12: error: no match for 'operator=' (operand types are 'std::vector<std::__cxx11::basic_string<char> >' and 'main()::<lambda()>')
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'const std::vector<std::__cxx11::basic_string<char> >&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::vector<std::__cxx11::basic_string<char> >&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'main()::<lambda()>' to 'std::initializer_list<std::__cxx11::basic_string<char> >'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<iostream>
void main()
{
  	string today;
  	cin>>today;
  	cout<<1<<endl;
  	return;
}

Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string today;
      |         ^~~~~~
a.cc:4:9: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>today;
      |         ^~~
      |         std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:14: error: 'today' was not declared in this scope
    5 |         cin>>today;
      |              ^~~~~
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout<<1<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout<<1<<endl;
      |                  ^~~~
      |                  std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
    7 |         return;
      |         ^~~~~~
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args){
		String[] s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
		string input = scn.next();
		int j;
		for(int i=0;i<=6;i++){
			if(s[i]==input) j=7-i;
		}
		System.out.println(j);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		string input = scn.next();
		^
  symbol:   class string
  location: class Main
Main.java:5: error: cannot find symbol
		string input = scn.next();
		               ^
  symbol:   variable scn
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define rep(i,n) for(int i=0;i<(n);i++)
#define repa(i,a,n) for(int i=(a);i<(n);i++)
#define rrep(i,n) for(int i=n;i>=0;i--)
#define rrepa(i,a,n) for(int i=n;i>=(a);i--)
#define all(a) (a).begin(),(a).end()
#define MOD 1000000007
#define maxs(a,b) a=max(a,b);
#define mins(a,b) a=min(a,b);

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<int,int> pi;

int main(){
    chrono::system_clock::time_point  time_now,time_start = chrono::system_clock::now();
    double time=0,TL=2995
    
    {
        
    }

    while(time < TL){
        cerr<<time<<endl;

        {

        }

        time_now=chrono::system_clock::now();
        time=chrono::duration_cast<chrono::milliseconds>(time_now-time_start).count();
    }
  
  	cout<<0<<endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: expected ',' or ';' before '{' token
   27 |     {
      |     ^