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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;

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

   map<string, int> weeks;

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

   cout << weels[s] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: 'weels' was not declared in this scope; did you mean 'weeks'?
   21 |    cout << weels[s] << endl;
      |            ^~~~~
      |            weeks
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)
#define rep2(i, a, b) for(int i = (a); i < (b); i++)
typedef long long ll;

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

   int ans = 0;

   switch(s) {
       case "SUN":
       ans = 7;
       break;

       case "MON":
       ans = 6;
       break;

       case "TUE":
       ans = 5;
       break;

       case "WED":
       ans = 4;
       break;

       case "THU":
       ans = 3;
       break;

       case "FRI":
       ans = 2;
       break;

       case "SAT":
       ans = 1;
       break;
   }

   cout << ans << endl;
}

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

import java.util.Scanner;

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


Compiler output:
Main.java:7: error: ';' expected
    String[] str = {"SAT","FRI","THU","WED","TUE","MON","SUN"}
                                                              ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'stirng' was not declared in this scope
    4 | stirng s;
      | ^~~~~~
a.cc:5:6: error: 's' was not declared in this scope
    5 | cin>>s;
      |      ^
Language: C

#include <stdio.h>

int main(void)
{
        char s[4];

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


Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scnaf("%s",s);
      |         ^~~~~
      |         scanf
Language: C++

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

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

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

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

int main(){
string S;
cin >> S ;
 
vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
  int answer;
for(int i=0;i<data.size();i++){
    if(S==data.at(i)){
     answer=i;
    }
}

  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'MON' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                     ^~~
a.cc:8:25: error: 'TUE' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                         ^~~
a.cc:8:29: error: 'WED' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                             ^~~
a.cc:8:33: error: 'THU' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                                 ^~~
a.cc:8:37: error: 'FRI' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                                     ^~~
a.cc:8:41: error: 'SAT' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                                         ^~~
a.cc:8:45: error: 'SUN' was not declared in this scope
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                                             ^~~
a.cc:8:48: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
    8 | vector<string>data={MON,TUE,WED,THU,FRI,SAT,SUN};
      |                                                ^
      |                                                |
      |                                                <brace-enclosed initializer list>
Language: C++

#include <bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i ,n) for(int i = 0 ; i < (n) ; i ++ )
#define mp(x,y) make_pair(x,y)
#define all(x) (x).begin(),(x).end()
using namespace std;
using ll = long long;
using vin=vector<int>;
using P = pair<int, int>;
const int inf=1e9+7;
const ll INF=1e18;

map<string,int> ans;
ans["SUN"]=7;ans["MON"]=6;ans["TUE"]=5;
ans["WED"]=4;ans["THU"]=3;ans["FRI"]=2;ans["SAT"]=1;


int main(){
  string s;
  cin>>s;
  cout<<ans[s]<<endl;
}

Compiler output:
a.cc:14:1: error: 'ans' does not name a type
   14 | ans["SUN"]=7;ans["MON"]=6;ans["TUE"]=5;
      | ^~~
a.cc:14:14: error: 'ans' does not name a type
   14 | ans["SUN"]=7;ans["MON"]=6;ans["TUE"]=5;
      |              ^~~
a.cc:14:27: error: 'ans' does not name a type
   14 | ans["SUN"]=7;ans["MON"]=6;ans["TUE"]=5;
      |                           ^~~
a.cc:15:1: error: 'ans' does not name a type
   15 | ans["WED"]=4;ans["THU"]=3;ans["FRI"]=2;ans["SAT"]=1;
      | ^~~
a.cc:15:14: error: 'ans' does not name a type
   15 | ans["WED"]=4;ans["THU"]=3;ans["FRI"]=2;ans["SAT"]=1;
      |              ^~~
a.cc:15:27: error: 'ans' does not name a type
   15 | ans["WED"]=4;ans["THU"]=3;ans["FRI"]=2;ans["SAT"]=1;
      |                           ^~~
a.cc:15:40: error: 'ans' does not name a type
   15 | ans["WED"]=4;ans["THU"]=3;ans["FRI"]=2;ans["SAT"]=1;
      |                                        ^~~
Language: C++

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

int main() {
  string s; cin >> s;
  vector<string> week = vector<string>{"SUN","MON","TUE","WED","THU","FRI","SAT"};
  int itr = find(week.begin(),week.end(),s);
  cout << 7-itr << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: cannot convert '__gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >' to 'int' in initialization
    8 |   int itr = find(week.begin(),week.end(),s);
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 |
      |                 __gnu_cxx::__normal_iterator<std::__cxx11::basic_string<char>*, std::vector<std::__cxx11::basic_string<char> > >
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: request for member 'size' in 'S', which is of non-class type 'std::string [7]' {aka 'std::__cxx11::basic_string<char> [7]'}
    8 |   for(int i = 0; i < S.size(); i++ ){
      |                        ^~~~
Language: C++

#include <bits/stdc++.h>

#define fst(t) std::get<0>(t)
#define snd(t) std::get<1>(t)
#define thd(t) std::get<2>(t)
#define unless(p) if(!(p))
#define until(p) while(!(p))

using ll = std::int64_t;
using P = std::tuple<int,int>;

std::string daysOfWeek[] = {"SUN","MON","TUE","WED","THU","FRI","SAT"};

int main(){
  std::cin.tie(nullptr);
  std::ios::sync_with_stdio(false);

  std::string S;

  int res = 7 - (std::find(daysOfWeek, daysOfWeek + 7) - daysOfWeek);
  std::cout << res << std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:27: error: no matching function for call to 'find(std::string [7], std::string*)'
   20 |   int res = 7 - (std::find(daysOfWeek, daysOfWeek + 7) - daysOfWeek);
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:3842:5: note: candidate: 'template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)'
 3842 |     find(_InputIterator __first, _InputIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:3842:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> std::find(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, const _Tp&)'
   60 | find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:60:1: note:   candidate expects 4 arguments, 2 provided
In file included from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT, std::char_traits<_CharT> > >::__type std::find(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   candidate expects 3 arguments, 2 provided
Language: Java

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

public class Main { //クラス名はMain
    public static void main(String[] args) {
        //コード
      	Scanner sc = new Scanner(System.in);
      	String[] week = ["SUN","MON","TUE","WED","THU","FRI","SAT"];
      	
      	String str = sc.next();
      
      	for (int i = 0; i < 7; i++) {
          	if(week[i].equals(str)) {
              	System.out.println(7-i);
              	System.exit(0);
            }
        }
    }
}

Compiler output:
Main.java:8: error: illegal start of expression
      	String[] week = ["SUN","MON","TUE","WED","THU","FRI","SAT"];
      	                ^
1 error
Language: Java

package app.abc146;

import java.util.Scanner;

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

        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);
        }
        sc.close();
    }
    
}

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 <iostream>
#include <vector>
#include <string>
//#inclde <bits/stdc++.h>
using namespace std;
int main(){
    
    string s;
    cin>>s;
    map<string,int> day;
    day["SUN"]=7;
    day["MON"]=6;
    day["TUE"]=5;
    day["WEN"]=4;
    day["THU"]=3;
    day["FRI"]=2;
    day["SAT"]=1;
    cout<<day[s]<<endl;
    
    return 0;
    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'map' was not declared in this scope
   10 |     map<string,int> day;
      |     ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <vector>
  +++ |+#include <map>
    3 | #include <string>
a.cc:10:15: error: expected primary-expression before ',' token
   10 |     map<string,int> day;
      |               ^
a.cc:10:16: error: expected primary-expression before 'int'
   10 |     map<string,int> day;
      |                ^~~
a.cc:11:5: error: 'day' was not declared in this scope
   11 |     day["SUN"]=7;
      |     ^~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
//#inclde <bits/stdc++.h>
using namespace std;
int main(){
    
    string s;
    cin>>s;
    map<string,int> day;
    day["SUN"]=7;
    day["MON"]=6;
    day["TUE"]=5;
    day["WEN"]=4;
    day["THU"]=3;
    day["FRI"]=2;
    day["SAT"]=1;
    cout<<day[s]<<endl;
    
    return 0;
    
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'map' was not declared in this scope
   10 |     map<string,int> day;
      |     ^~~
a.cc:3:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    2 | #include <vector>
  +++ |+#include <map>
    3 | #include <string>
a.cc:10:15: error: expected primary-expression before ',' token
   10 |     map<string,int> day;
      |               ^
a.cc:10:16: error: expected primary-expression before 'int'
   10 |     map<string,int> day;
      |                ^~~
a.cc:11:5: error: 'day' was not declared in this scope
   11 |     day["SUN"]=7;
      |     ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n); for(int i = 0;i < (n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}
int fact(int n){
  if(n == 1)return 1;
  return n * fact(n-1);
  }

int main(){
  string s;
  string w[7] = {"MON","TUE","WED","THU","FRI","SAT","SUN"};
  rep(i,w.size()){
    if(s == w[i]){
      cout << (6 - i) << endl;
      return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:11: error: request for member 'size' in 'w', which is of non-class type 'std::string [7]' {aka 'std::__cxx11::basic_string<char> [7]'}
   33 |   rep(i,w.size()){
      |           ^~~~
a.cc:2:38: note: in definition of macro 'rep'
    2 | #define rep(i,n); for(int i = 0;i < (n);i++)
      |                                      ^
a.cc:38:2: error: expected '}' at end of input
   38 | }
      |  ^
a.cc:30:11: note: to match this '{'
   30 | int main(){
      |           ^
Language: C++

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

int main() {
  string s;
  cin >> s;
  vector<string> week(7);
  week = {"MON" "TUE" "WHD" "THU" "FRI" "SAT" "SUN"}
  for (int i = 0; i < 7; i++) {
    if (s == week.at(i)) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:53: error: expected ';' before 'for'
    8 |   week = {"MON" "TUE" "WHD" "THU" "FRI" "SAT" "SUN"}
      |                                                     ^
      |                                                     ;
    9 |   for (int i = 0; i < 7; i++) {
      |   ~~~                                                
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < 7; i++) {
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define rrep(i,m,n) for(ll i=(m);i<(n);i++)
#define fore(i,a) for(auto &i:a)
#define debug(a,b) cout << "debug : " << a << " , "<< b << endl
using ll=long long;
const ll INF=1LL<<60;
const ll mod=1E9+7;


int main(){
  ll a,b,x;
  cin >> a >> b >> x;
  ll y,m=1000000000;
  (ll)auto f=[&](auto c){return a*c+b*(ll)log10(10*c);};
  if(f(1)>x)cout << 0;
  else if(f(m)<=x)cout << m;
  else{ 
    for(ll i=1;i<m;i*=10){
      if(f(i)<=x&&f(10*i)>x){
	    y=x-b*(ll)log10(10*i);
	    cout << y/a;
	    break;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:7: error: expected primary-expression before 'auto'
   16 |   (ll)auto f=[&](auto c){return a*c+b*(ll)log10(10*c);};
      |       ^~~~
a.cc:17:6: error: 'f' was not declared in this scope
   17 |   if(f(1)>x)cout << 0;
      |      ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:20: error: lvalue required as left operand of assignment
    6 | if(a[0]="S" && a[1]="U") printf("7");
      |                    ^
main.c:7:25: error: lvalue required as left operand of assignment
    7 | else if(a[0]="S" && a[1]="A") printf("1");
      |                         ^
main.c:8:13: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    8 | else if(a[0]="F") printf("2");
      |             ^
main.c:9:26: error: lvalue required as left operand of assignment
    9 |  else if(a[0]="T" && a[1]="H") printf("3");
      |                          ^
main.c:10:14: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   10 |  else if(a[0]="W") printf("4");
      |              ^
main.c:11:27: error: lvalue required as left operand of assignment
   11 |   else if(a[0]="T" && a[1]="U") printf("5");
      |                           ^
main.c:12:15: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |   else if(a[0]="M") printf("6");
      |               ^
Language: C++

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

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

#include<stdio.h>
int main()
{
char a[3];
  for(int i=0;i<3;++i)
  {
  for('%c',&a[i]);
  }
if(a[0]=='S' && a[1]=='U') printf("7");
else  if(a[0]=='S' && a[1]=='A') printf("1");
else  if(a[0]=='F' && a[1]=='R') printf("2");  
else  if(a[0]=='T' && a[1]=='H') printf("3");
else  if(a[0]=='W' && a[1]=='E') printf("4");  
else  if(a[0]=='T' && a[1]=='U') printf("5");  
else  if(a[0]=='M' && a[1]=='O') printf("1");  

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: warning: multi-character character constant [-Wmultichar]
    7 |   for('%c',&a[i]);
      |       ^~~~
main.c:7:17: error: expected ';' before ')' token
    7 |   for('%c',&a[i]);
      |                 ^
      |                 ;
main.c:7:17: error: expected expression before ')' token
Language: C++

#include <iostream>
using namespace std;
void ABC140(void);
void ABC141(void);
void ABC142(void);
void ABC143(void);
void ABC144(void);
void ABC145(void);
void ABC146(void);
void ABC147(void);
void ABC148(void);
void ABC149(void);

int main(void){
    ABC146();
}

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

Compiler output:
a.cc: In function 'void ABC146()':
a.cc:22:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SUN"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   22 |     if(s="SUN")ans=7;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:23:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"MON"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   23 |     if(s="MON")ans=6;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:24:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"TUE"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   24 |     if(s="TUE")ans=5;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:25:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"WED"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   25 |     if(s="WED")ans=4;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:26:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"THU"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   26 |     if(s="THU")ans=3;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:27:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"FRI"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   27 |     if(s="FRI")ans=2;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:28:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"SAT"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   28 |     if(s="SAT")ans=1;
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before '<' token
    7 |   for (int i,i<7,i++){
      |               ^
      |               ;
a.cc:7:15: error: expected primary-expression before '<' token
a.cc:7:21: error: expected ';' before ')' token
    7 |   for (int i,i<7,i++){
      |                     ^
      |                     ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  
  vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
  string S;
  cin>>S;
  
  for(int i=0;i<7;i++) {
    if(S==Day.at(i)) {
      cout<<i+1<<endl;
      break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'SAT' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                        ^~~
a.cc:5:28: error: 'FRI' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                            ^~~
a.cc:5:32: error: 'THU' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                ^~~
a.cc:5:36: error: 'WED' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                    ^~~
a.cc:5:40: error: 'TUE' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                        ^~~
a.cc:5:44: error: 'MON' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                            ^~~
a.cc:5:48: error: 'SUN' was not declared in this scope
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                                ^~~
a.cc:5:51: error: could not convert '{<expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<std::__cxx11::basic_string<char> >'
    5 |   vector<string> Day ={SAT,FRI,THU,WED,TUE,MON,SUN};
      |                                                   ^
      |                                                   |
      |                                                   <brace-enclosed initializer list>
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
  
  for (int i = 0; i < 7; i++) {
    if (S == w[i]) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:7:16: error: expected primary-expression before '>' token
    7 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                ^
a.cc:7:18: error: 'w' was not declared in this scope
    7 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  
  vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
  
  for (int i = 0; i < 7; i++) {
    if (S == w[i]) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                ^
a.cc:8:18: error: 'w' was not declared in this scope
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  
  vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
  
  for (int i = 0; i < 7; i++) {
    if (w[i] == S) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                ^
a.cc:8:18: error: 'w' was not declared in this scope
    8 |   vector<string> w = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  
  vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
  
  for (int i = 0; i < 7; i++) {
    if (week[i] == S) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                ^
a.cc:8:18: error: 'week' was not declared in this scope
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"};
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  
  vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"}
  
  for (string i = 0; i < 7; i++) {
    if (week[i] == S) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"}
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"}
      |                ^
a.cc:8:18: error: 'week' was not declared in this scope
    8 |   vector<string> week = {"SAT", "FRI", "THU", "WED", "TUE", "MON", "SUN"}
      |                  ^~~~
a.cc:10:22: error: 'i' was not declared in this scope
   10 |   for (string i = 0; i < 7; i++) {
      |                      ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  
  vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
  
  for (string i = 0; i < 7; i++) {
    if (week[i] == S) {
      cout << i + 1 << endl;
    }
  }
}

Compiler output:
a.cc:8:26: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                          ^~~~~
a.cc:8:33: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                 ^~~~~
a.cc:8:40: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                        ^~~~~
a.cc:8:47: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                               ^~~~~
a.cc:8:54: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                                      ^~~~~
a.cc:8:61: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                                             ^~~~~
a.cc:8:68: warning: multi-character character constant [-Wmultichar]
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                                                                    ^~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:16: error: expected primary-expression before '>' token
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                ^
a.cc:8:18: error: 'week' was not declared in this scope
    8 |   vector<string> week = {'SAT', 'FRI', 'THU', 'WED', 'TUE', 'MON', 'SUN'}
      |                  ^~~~
a.cc:10:22: error: 'i' was not declared in this scope
   10 |   for (string i = 0; i < 7; i++) {
      |                      ^
Language: C++

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

const long long INF = 1000000000;

typedef long long ll;

#define writeln(n) cout<<n<<"\n";

typedef pair<int, int> P;
typedef pair<string, int> Psi;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	
	string s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
	
	
	if(s =="SUN"){
		writeln(7);
	}else if (s =="MON") {
		writeln(6);
	}else if (s =="TUE") {
		writeln(5);
	}else if (s =="WED") {
		writeln(4);
	}else if (s =="THU") {
		writeln(3);
	}else if (s =="FRI") {
		writeln(2);
	}else {
		writeln(1);
	}
}




Compiler output:
a.cc: In function 'int main()':
a.cc:18:62: error: could not convert '{"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}' from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
   18 |         string s = {"SUN","MON","TUE","WED","THU","FRI","SAT"};
      |                                                              ^
      |                                                              |
      |                                                              <brace-enclosed initializer list>
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "sub.h"

void day_count(char*day){
    if(day[0]=='S' & day[1]=='U'){
        printf("7");
    }
    else if(day[0]=='M' & day[1]=='O'){
        printf("6");
    }
    else if(day[0]=='T' & day[1]=='U'){
        printf("5");
    }
    else if(day[0]=='W' & day[1]=='E'){
        printf("4");
    }
    else if(day[0]=='T' & day[1]=='H'){
        printf("3");
    }
    else if(day[0]=='F' & day[1]=='R'){
        printf("2");
    }
    else if(day[0]=='S' & day[1]=='A'){
        printf("1");
    }
}


int main() {
    char day[50];
    scanf("%s",day);

    day_count(day);


    return 0;
}


Compiler output:
main.c:4:10: fatal error: sub.h: No such file or directory
    4 | #include "sub.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

int main() {
  srting 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: In function 'int main()':
a.cc:5:3: error: 'srting' was not declared in this scope
    5 |   srting s;
      |   ^~~~~~
a.cc:6:9: error: 's' was not declared in this scope
    6 |   cin >>s;
      |         ^
Language: C++

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

int main() {
  srting 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: In function 'int main()':
a.cc:5:3: error: 'srting' was not declared in this scope
    5 |   srting s;
      |   ^~~~~~
a.cc:6:9: error: 's' was not declared in this scope
    6 |   cin >>s;
      |         ^
Language: Java

import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next();
    
    SUN,MON,TUE,WED,THU,FRI,SAT
    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:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
    ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
       ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
        ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
           ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
            ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
               ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
                ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
                   ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
                    ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
                       ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
                        ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
                           ^
Main.java:10: error: not a statement
    SUN,MON,TUE,WED,THU,FRI,SAT
                            ^
Main.java:10: error: ';' expected
    SUN,MON,TUE,WED,THU,FRI,SAT
                               ^
14 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

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

using namespace std;

typedef long long ll;

int main()
{
    string S;
    cin>>S;
    if(S=="SAT")
    {
        cout<<"1";
    }
    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=="SUN")
    {
        cout<<"7";
    }
    return 0;
}

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   17 | int main()
      |         ^~
a.cc:17:9: note: remove parentheses to default-initialize a variable
   17 | int main()
      |         ^~
      |         --
a.cc:17:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:1: error: a function-definition is not allowed here before '{' token
   18 | {
      | ^
Language: C++

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

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

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


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

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

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected ';' before 'if'
    4 |   scanf("%s",&a)
      |                 ^
      |                 ;
    5 | if(a=="SAT") printf("1");
      | ~~               
main.c:6:1: error: 'else' without a previous 'if'
    6 | else if(a=="FRI") printf("2");
      | ^~~~
main.c:6:10: warning: comparison between pointer and integer
    6 | else if(a=="FRI") printf("2");
      |          ^~
main.c:7:10: warning: comparison between pointer and integer
    7 | else if(a=="THU") printf("3");
      |          ^~
main.c:8:10: warning: comparison between pointer and integer
    8 | else if(a=="WED") printf("4");
      |          ^~
main.c:9:10: warning: comparison between pointer and integer
    9 | else if(a=="TUE") printf("5");
      |          ^~
main.c:10:10: warning: comparison between pointer and integer
   10 | else if(a=="MON") printf("6");
      |          ^~
main.c:11:10: warning: comparison between pointer and integer
   11 | else if(a=="SUN") printf("7");
      |          ^~
Language: C++

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

int main() {
  int A;
if(S=="SAT") A=1;
else if(S=="FRI") A=2;
else if(S=="THU") A=3;
else if(S=="WED") A=4;
else if(S=="TUE") A=5;
else if(S=="MON") A=6;
else A=7;
  cout<<A<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: 'S' was not declared in this scope
    6 | if(S=="SAT") A=1;
      |    ^
Language: Java

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


Compiler output:
Main.java:9: error: illegal character: '\u3000'
      ?if(s.equals("WED")){System.out.println(4);}
      ^
Main.java:10: error: illegal character: '\u3000'
      ?if(s.equals("THU")){System.out.println(3);}
      ^
Main.java:11: error: illegal character: '\u3000'
      ?if(s.equals("FRI")){System.out.println(2);}
      ^
Main.java:12: error: illegal character: '\u3000'
      ?if(s.equals("SAT")){System.out.println(1);}
      ^
4 errors
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char s[4];
    char s1[]="SAT";
    char s2[]="SUN";
    char s3[]="MON";
    char s4[]="TUE";
    char s5[]="WED";
    char s6[]="THU";
    char s7[]="FRI";
    int a,b,c,d,e,f,g;
    gets(s);
    a=strcmp(s,s1);
    if(a==0){
        printf("1\n");
    }
    b=strcmp(s,s2);
    if(b==0){
        printf("7\n");
    }
    c=strcmp(s,s3);
    if(c==0){
        printf("6\n");
    }
    d=strcmp(s,s4);
    if(d==0){
        printf("5\n");
    }
    e=strcmp(s,s5);
    if(e==0){
        printf("4\n");
    }
    f=strcmp(s,s6);
    if(f==0){
        printf("3\n");
    }
    g=strcmp(s,s7);
    if(g==0){
        printf("2\n");
    }
    return 0;
}

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

nclude<stdio.h>
#include<string.h>
int main()
{
    char s[4];
    char s1[]="SAT";
    char s2[]="SUN";
    char s3[]="MON";
    char s4[]="TUE";
    char s5[]="WED";
    char s6[]="THU";
    char s7[]="FRI";
    int a,b,c,d,e,f,g;
    gets(s);
    a=strcmp(s,s1);
    if(a==0){
        printf("1\n");
    }
    b=strcmp(s,s2);
    if(b==0){
        printf("7\n");
    }
    c=strcmp(s,s3);
    if(c==0){
        printf("6\n");
    }
    d=strcmp(s,s4);
    if(d==0){
        printf("5\n");
    }
    e=strcmp(s,s5);
    if(e==0){
        printf("4\n");
    }
    f=strcmp(s,s6);
    if(f==0){
        printf("3\n");
    }
    g=strcmp(s,s7);
    if(g==0){
        printf("2\n");
    }
    return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<stdio.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'gets' was not declared in this scope
   14 |     gets(s);
      |     ^~~~
a.cc:15:7: error: 'strcmp' was not declared in this scope
   15 |     a=strcmp(s,s1);
      |       ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<string.h>
  +++ |+#include <cstring>
    3 | int main()
a.cc:17:9: error: 'printf' was not declared in this scope
   17 |         printf("1\n");
      |         ^~~~~~
a.cc:3:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    2 | #include<string.h>
  +++ |+#include <cstdio>
    3 | int main()
a.cc:21:9: error: 'printf' was not declared in this scope
   21 |         printf("7\n");
      |         ^~~~~~
a.cc:21:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:25:9: error: 'printf' was not declared in this scope
   25 |         printf("6\n");
      |         ^~~~~~
a.cc:25:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:29:9: error: 'printf' was not declared in this scope
   29 |         printf("5\n");
      |         ^~~~~~
a.cc:29:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:33:9: error: 'printf' was not declared in this scope
   33 |         printf("4\n");
      |         ^~~~~~
a.cc:33:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:37:9: error: 'printf' was not declared in this scope
   37 |         printf("3\n");
      |         ^~~~~~
a.cc:37:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:41:9: error: 'printf' was not declared in this scope
   41 |         printf("2\n");
      |         ^~~~~~
a.cc:41:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

//============================================================================
// Name        : a.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

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

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


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