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

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

int main() {
  int time;
  int day30;
  cin >> time;
  time_rmained_day30 = 25 % time;
  cout << 24+time_rmained_day30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'time_rmained_day30' was not declared in this scope
    8 |   time_rmained_day30 = 25 % time;
      |   ^~~~~~~~~~~~~~~~~~
Language: C++

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

int main() {
  int time;
  int day30;
  cin >> time;
  day30 = 24 % time;
  cout << 24+dat30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: 'dat30' was not declared in this scope; did you mean 'day30'?
    9 |   cout << 24+dat30 << endl;
      |              ^~~~~
      |              day30
Language: C++

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

int main() {
  int time;
  int day30;
  cin >> time;
  day30 = 24 % time;
  cout << dat30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'dat30' was not declared in this scope; did you mean 'day30'?
    9 |   cout << dat30 << endl;
      |           ^~~~~
      |           day30
Language: C++

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

int main() {
  int time;
  cin >> time;
  int day30 = 24 % time;
  cout << dat30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'dat30' was not declared in this scope; did you mean 'day30'?
    8 |   cout << dat30 << endl;
      |           ^~~~~
      |           day30
Language: C++

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

int main() {
  int time;
  cin >> time;
  int day30 = 24 % time
  cout << dat30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cout'
    8 |   cout << dat30 << endl;
      |   ^~~~
Language: C++

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

int main() {
  int time;
  cin >> time;
  day30 = 24 % time
  cout << dat30 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'day30' was not declared in this scope
    7 |   day30 = 24 % time
      |   ^~~~~
Language: C++

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

int main() {
	int M;
  cin >> M;
	cont << 48 - M << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cont' was not declared in this scope; did you mean 'const'?
    7 |         cont << 48 - M << endl;
      |         ^~~~
      |         const
Language: C++

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

int main() {
  int x 
  cin >> M;
  cout << x = 24 - M << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> M;
      |   ^~~
a.cc:7:11: error: 'x' was not declared in this scope
    7 |   cout << x = 24 - M << endl;
      |           ^
a.cc:7:20: error: 'M' was not declared in this scope
    7 |   cout << x = 24 - M << endl;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int M;
  
  cin >> M;
  cout << (24 - M) + 24 << edl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'edl' was not declared in this scope
    8 |   cout << (24 - M) + 24 << edl;
      |                            ^~~
Language: C++

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

  int a
    
  cin >> a;
  
  cout << 48-a << endl;
}  
    
    

Compiler output:
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 48-a << endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

int main () {
  int m
    
  cin >> m;
  
  cout << 48 - m << endl;
}  
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> m;
      |   ^~~
a.cc:9:16: error: 'm' was not declared in this scope; did you mean 'tm'?
    9 |   cout << 48 - m << endl;
      |                ^
      |                tm
Language: C++

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

int main () {
  int M
    
  cin >> M;
  
  cout << 48 - M << endl;
}  
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> M;
      |   ^~~
a.cc:9:16: error: 'M' was not declared in this scope
    9 |   cout << 48 - M << endl;
      |                ^
Language: C++

# -*- coding: utf-8 -*-
# 整数の入力
a = int(raw_input())
# 出力
print 48 - a

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: error: invalid preprocessing directive #\U00006574\U00006570\U0000306e\U00005165\U0000529b
    2 | # 整数の入力
      |   ^~~~~~~~~~
a.cc:4:3: error: invalid preprocessing directive #\U000051fa\U0000529b
    4 | # 出力
      |   ^~~~
a.cc:3:1: error: 'a' does not name a type
    3 | a = int(raw_input())
      | ^
Language: C++

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

int f(int M){
  return (24-M);
}
    
int main() {
  int M, x;
  x = f(M)
  cin >> M;
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'cin'
   10 |   x = f(M)
      |           ^
      |           ;
   11 |   cin >> M;
      |   ~~~
Language: C++

#include<bits/stdc++.h>
using namespace;
int main(){
	int M;
	cin>>M;
cout<<48-M<<endl;
}


Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>M;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<48-M<<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:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout<<48-M<<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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
int main(){
	int M;
	cin>>M;
cout<<48-M<<endl;
}


Compiler output:
a.cc:3:1: error: expected identifier before 'int'
    3 | int main(){
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | int main(){
      | ~~~             
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>M;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | cout<<48-M<<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:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | cout<<48-M<<endl;
      |             ^~~~
      |             std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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() {
 int hour; //ここに12/30の何時か入力
  cin >> hour
    cout << 48-hour <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected ';' before 'cout'
    6 |   cin >> hour
      |              ^
      |              ;
    7 |     cout << 48-hour <<endl;
      |     ~~~~
Language: C++

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int x = s.nextInt();


		System.out.println(24+(24-x));

	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

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

int main() {
  int M=0;
  
  cin >> M;
  
  if( ( 1 > M ) || ( 23 < B) ){
  	return -1;
  }
  
  cout << 48-M << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: 'B' was not declared in this scope
    9 |   if( ( 1 > M ) || ( 23 < B) ){
      |                           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int M;
	
  cin>>M;
  cout<<48-M<<;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before ';' token
    8 |   cout<<48-M<<;
      |               ^
Language: C++

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

int main(){
	int M;
	
  cin>>M;
  cout<<48-M<<;
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int m;
    cint >>m;
    cnt=24-m
    cout << 24+cnt <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cint' was not declared in this scope; did you mean 'uint'?
    6 |     cint >>m;
      |     ^~~~
      |     uint
a.cc:7:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
    7 |     cnt=24-m
      |     ^~~
      |     int
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int y=24;
  cin >> a;
  cout << y+a << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int year = 24;
  cin >> a;
  cout << year+a << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 int M、x;  

 cin >> M;
 x = 48;
 cout << 48 - M; 
}

Compiler output:
a.cc:5:6: error: extended character 、 is not valid in an identifier
    5 |  int M、x;
      |      ^
a.cc: In function 'int main()':
a.cc:7:9: error: 'M' was not declared in this scope
    7 |  cin >> M;
      |         ^
a.cc:8:2: error: 'x' was not declared in this scope
    8 |  x = 48;
      |  ^
Language: C++

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

int main() {
  int 30th, 31th;
  31th = 24;
  cin >> 30th;
  cout << 24 - 30th + 31th << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 30th, 31th;
      |       ^~~~
a.cc:6:3: error: unable to find numeric literal operator 'operator""th'
    6 |   31th = 24;
      |   ^~~~
a.cc:7:10: error: unable to find numeric literal operator 'operator""th'
    7 |   cin >> 30th;
      |          ^~~~
a.cc:8:16: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th + 31th << endl;
      |                ^~~~
a.cc:8:23: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th + 31th << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int 30th, 31th;

  cin >> 30th;
  cout << 24 - 30th - 31th << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 30th, 31th;
      |       ^~~~
a.cc:7:10: error: unable to find numeric literal operator 'operator""th'
    7 |   cin >> 30th;
      |          ^~~~
a.cc:8:16: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                ^~~~
a.cc:8:23: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int 30th, 31th

  cin >> 30th;
  cout << 24 - 30th - 31th << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 30th, 31th
      |       ^~~~
a.cc:8:16: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                ^~~~
a.cc:8:23: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int 31th = 24;
  int 30th
  cin >> 30th;
  cout << 24 - 30th - 31th << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 31th = 24;
      |       ^~~~
a.cc:6:7: error: expected unqualified-id before numeric constant
    6 |   int 30th
      |       ^~~~
a.cc:8:16: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                ^~~~
a.cc:8:23: error: unable to find numeric literal operator 'operator""th'
    8 |   cout << 24 - 30th - 31th << endl;
      |                       ^~~~
Language: C++

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

int main() {
  int M;
  cin >> M;
  
  cout << 48 - M << endl;
}

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

#include <iostream>

int main(void)
{
int n;

cin >> n;

cout << 48 - n << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> n;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | cout << 48 - n << 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:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | cout << 48 - n << endl;
      |                   ^~~~
      |                   std::endl
In file included from /usr/include/c++/14/iostream:41:
/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(){
  int x;
  cin>>x;
  cout<<x+M<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'M' was not declared in this scope
    7 |   cout<<x+M<<endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int x;
  cin >> x;
  cout<<x+M<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'M' was not declared in this scope
    7 |   cout<<x+M<<endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  char a[20];
  int A,B;
  cin >>A>>B;
  for(int i = 0;i < A+B+1;i++){
    cin >> char a[i];
  }
  if(char a[A+1] == '-' && a[A-1] != '-' && a[B-1] != '-') cout <<"Yes"<<endl;
  else cout <<"No"<<endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before 'char'
    8 |     cin >> char a[i];
      |            ^~~~
a.cc:10:11: error: condition declares an array
   10 |   if(char a[A+1] == '-' && a[A-1] != '-' && a[B-1] != '-') cout <<"Yes"<<endl;
      |           ^
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
		System.out.println(48-(stdin.nextInt()));

		}


	}

}

Compiler output:
Main.java:15: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner stdin = new Scanner(System.in);
			System.out.println(48-stdin.nextInt());

		}


	}

}

Compiler output:
Main.java:15: error: class, interface, enum, or record expected
}
^
1 error
Language: C

#include<stdio.h>
int main(){
    int a;
    scanf("%d",&a);
    printf("%d",48-a);
    return;
}


Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
    6 |     return;
      |     ^~~~~~
main.c:2:5: note: declared here
    2 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
inline int read(){
    int f=1,x=0;
    char ch;
    do{
        ch=getchar();
        if(ch=='-'){
            f=-1;
        }
    }while(ch<'0'||ch>'9');
    do{
        x=x*10+ch-48;
        ch=getchar();
    }while(ch>='0'&&ch<='9');
    return f*x;
}
inline int cmp(int a,int b){
    if(a>b){
        return a;
    }
    else{
        return b;
    }
}
int main(){
    int n=read();
    print(48-n);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   28 |     print(48-n);
      |     ^~~~~
      |     rint
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
typedef long long LL;
int main() {
	int n;
	std::cin >> n;
	std::cout << 24 + (24 - n) << std::endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:49: error: expected '}' at end of input
    9 |         std::cout << 24 + (24 - n) << std::endl;
      |                                                 ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
typedef long long LL;
int main() {
	int n;
	std::cin >> n;
	std::cout << 24 + (n - 24) << std::endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:49: error: expected '}' at end of input
    9 |         std::cout << 24 + (n - 24) << std::endl;
      |                                                 ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: Java

public class Main {
	public static void main(String[] args){
	      Scanner sc = new Scanner(System.in);
	      int m = sc.nextInt();
	      System.out.println((48-m));
	}
}

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

#include<iostream>

using namespace std;

int main()
{
  int name = M;
  cin>> M >> endl;
  
  cout << 48 - M <<endl;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'M' was not declared in this scope
    7 |   int name = M;
      |              ^
Language: C++

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

int main() {
  // ここに追記
  int x;
  cin >> x;
  cout << 24 + (24 - x) <<;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected primary-expression before ';' token
    8 |   cout << 24 + (24 - x) <<;
      |                           ^
Language: Java

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
  int a = sc.nextInt();
  int b = sc.nextInt();
  String s = sc.next();
  String[] t = s.split("-");
  if(t.length != 2)System.out.println("No");
  else if(t.length == 2 && s.charAt(a) == '-')System.out.println("Yes");
  else System.println("No");
}}


Compiler output:
Main.java:11: error: cannot find symbol
  else System.println("No");
             ^
  symbol:   method println(String)
  location: class System
1 error
Language: C++

#include<iostream>
int main(){
    int M;
    cin >> M;
    cout << 48-M << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     cin >> M;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << 48-M << 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:5:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << 48-M << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
using namespace std;

int main(){
    cin >> int M;
    cout << 48 - M << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before 'int'
    7 |     cin >> int M;
      |            ^~~
a.cc:8:18: error: 'M' was not declared in this scope
    8 |     cout << 48 - M << endl;
      |                  ^
Language: C++

#include<iostream>
using namespace std; 
 
 
int main()
{
int a;
cin >> a
a = 48-a;
printf("%d",a);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'a'
    8 | cin >> a
      |         ^
      |         ;
    9 | a = 48-a;
      | ~
Language: C++

#include<iostream>
using namespace std; 
 
 
int main()
{
cin >> a
int a;
a = 48-a;
printf("%d",a);
}

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

#include<iostream>
using namespace std; 
 
 
int main()
{
int a;
a = 48-a
printf("%d",a)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'printf'
    8 | a = 48-a
      |         ^
      |         ;
    9 | printf("%d",a)
      | ~~~~~~
Language: Java



Import java.util.Scanner;

Public class Main {

   Public static void main(String[] args){

Scanner sc = new Scanner(System.in)

    int = a.nextInt();

System.out.plintln(48-a);

}}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
Import java.util.Scanner;
^
Main.java:5: error: class, interface, enum, or record expected
Public class Main {
^
Main.java:7: error: <identifier> expected
   Public static void main(String[] args){
         ^
Main.java:9: error: ';' expected
Scanner sc = new Scanner(System.in)
                                   ^
Main.java:11: error: not a statement
    int = a.nextInt();
    ^
Main.java:11: error: ';' expected
    int = a.nextInt();
       ^
6 errors
Language: C++

#include<stdio.h>
int main()
{
char str[23];
int N;
    fgets(str,sizeof(str),stdin);
    sscanf(str,"%d",&N);
    
    int ans=24-str+24;
    printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid operands of types 'int' and 'char [23]' to binary 'operator-'
    9 |     int ans=24-str+24;
      |             ~~^~~~
      |             |  |
      |             |  char [23]
      |             int
Language: C++

#include<iostream>
using namespace std;

int main(){

    int m;
    cin >> n;
    int ans = 48-m;
    cout << ans << endl;


    return 0;
}

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

#include<stdio.h>
#include<stdlib.h>

int main(int argc,char** argv)
{
	int M;
	M = 24 - M;
	M = M + 24
	printf("%d\n",M );
	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected ';' before 'printf'
    8 |         M = M + 24
      |                   ^
      |                   ;
    9 |         printf("%d\n",M );
      |         ~~~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(int argc,char* argv)
{
	int M;
	M = 24 - M;
	M = M + 24
	printf("%d\n",M );
	return(0);
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected ';' before 'printf'
    8 |         M = M + 24
      |                   ^
      |                   ;
    9 |         printf("%d\n",M );
      |         ~~~~~~
Language: Java

import java.util.Scanner;

public class General {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int M = scanner.nextInt();
		System.out.println(48 - M);
		scanner.close();
	}
}


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

#include <iostream>

using namespace std;

int main (void) {
    int a；
    cin >> a；
    cout << 48 - a << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> a；
      |     ^~~
Language: C++

#include  <cstdio >
int A,B;
char s[12];
int  main()
{
scanf ("%d%d",&A,&B);
scanf ("%s",&s);
for(int i=0;i<A;i++)if(!('0'<=s[i]&&s[i]<='9'))
{
puts("No");  return  0;
}
if(s[A]!='-')
{
puts("No");  return  0;
}
for(int i=A+1;i<=A+B;i++)if(!('0'<=s[i]&&s[i]<='9'))
{
puts("No");  return  0;
}
puts("Yes");
}

Compiler output:
a.cc:1:11: fatal error: cstdio : No such file or directory
    1 | #include  <cstdio >
      |           ^~~~~~~~~
compilation terminated.
Language: C

# include < cstdio >
bool f [100001];
int c [100002];
int N ,L , R ;
int main ()
{
for ( int i =2; i <=100000; i ++) if (! f [ i ]) for ( int j = i + i ;j <=100000; j += i )
f[ j ]= true ;
for ( int i =3; i <=100000; i +=2) if (! f [ i ]&&! f [( i +1)/2]) c [ i ]++;
for ( int i =3; i <=100000; i ++) c [ i ]+= c [i -1];
scanf ("% d " ,& N );
while (N - -)
{
scanf ("% d % d " ,&L ,& R );
printf ("% d \ n " , c [ R ] - c [L -1]);
}
}

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

#include<bits/stdc++.h>
usinga namespace std;
int main()
{

	int x;
        cin>>x;
       cout<<(24+(24-x))<<endl;
    return 0;
}


Compiler output:
a.cc:2:1: error: 'usinga' does not name a type
    2 | usinga namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>x;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |        cout<<(24+(24-x))<<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:8:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |        cout<<(24+(24-x))<<endl;
      |                           ^~~~
      |                           std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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()
{

	cin>>x;
cout<<(24+(24-x))<<endl;
    return 0;
}


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

#include <stdio.h>

int main(void)
{
	int a,b,c,x;

	a=24;
	scanf("%d",&x);
	c=24-x;
	b=a+c;
	printf("%d\n",&b);

	return 0

}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: expected ';' before '}' token
   13 |         return 0
      |                 ^
      |                 ;
   14 | 
   15 | }
      | ~
Language: C

#include <stdio.h>

int main(void)
{
	int a,b,c,M;

	a=24;
	scanf("%d",&M);
	c=24-M;
	b=a+c;
	printf("%d\n",&b);

	return 0

}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: expected ';' before '}' token
   13 |         return 0
      |                 ^
      |                 ;
   14 | 
   15 | }
      | ~
Language: C

#include <stdio.h>

int function()
{
	int a,b,c,m;

	a=24;
	scanf("%d",&m);
	c=24-m;
	b=a+c;
	printf("%d",&b);

	return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <stdio.h>

int main()
{
	int a,b,c,m;

	a=24;
	scanf(%d,&m);
	c=24-m;
	b=a+c;
	printf(%d,&b);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected expression before '%' token
    8 |         scanf(%d,&m);
      |               ^
main.c:11:16: error: expected expression before '%' token
   11 |         printf(%d,&b);
      |                ^
Language: C

#include <stdio.h>
int main()
{
	int a,b,m;

	a=24;
	scanf("%d",&m);
	b=a+m;
	printf("%d",&b\n);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:23: error: stray '\' in program
    9 |         printf("%d",&b\n);
      |                       ^
main.c:9:23: error: expected ')' before 'n'
    9 |         printf("%d",&b\n);
      |               ~       ^~
      |                       )
Language: C++

#include<stdio.h>
#include<conio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
b=24-a;
c=b+24;
printf ("%d",c);
}

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

#include<bits/stdc++.h>
usinga namespace std;
int main()
{

cin>>x;
cout<<(24+(24-x))<<endl;
    return 0;
}


Compiler output:
a.cc:2:1: error: 'usinga' does not name a type
    2 | usinga namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>x;
      | ^~~
      | std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:6: error: 'x' was not declared in this scope
    6 | cin>>x;
      |      ^
a.cc:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<(24+(24-x))<<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:7:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout<<(24+(24-x))<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <cstdio>

using namespace std;

int main(){
	int n;
	scanf("%d", &n);
	print("%d\n", 24 + 24 - n);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'print' was not declared in this scope; did you mean 'printf'?
    8 |         print("%d\n", 24 + 24 - n);
      |         ^~~~~
      |         printf
Language: C++

#include<bits/stdc++.h>
using namespace std
int main()
{
    int a;
    cin>>a;
    cout<<48-a<<endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main()
      | ~~~
Language: C

N=input()
M=48-N
print(M)

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N=input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N=input()
      |   ^~~~~
main.c:1:3: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'M'
    2 | M=48-N
      | ^
Language: C++

// Contest.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cctype>

using namespace std;

int main()
{
	int A, B;
	cin >> A >> B;
	string s;
	cin >> s;
	if (s[A] == '-') {
		s.erase(s.begin()+A);
		if (all_of(s.cbegin(), s.cend(), isdigit)) cout << "Yes" << endl;
		else cout << "No"<< endl;
	}
	else cout << "No" << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:20:27: error: no matching function for call to 'all_of(std::__cxx11::basic_string<char>::const_iterator, std::__cxx11::basic_string<char>::const_iterator, <unresolved overloaded function type>)'
   20 |                 if (all_of(s.cbegin(), s.cend(), isdigit)) cout << "Yes" << endl;
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:7:
/usr/include/c++/14/bits/stl_algo.h:410:5: note: candidate: 'template<class _IIter, class _Predicate> bool std::all_of(_IIter, _IIter, _Predicate)'
  410 |     all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred)
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algo.h:410:5: note:   template argument deduction/substitution failed:
a.cc:20:27: note:   couldn't deduce template parameter '_Predicate'
   20 |                 if (all_of(s.cbegin(), s.cend(), isdigit)) cout << "Yes" << endl;
      |                     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:30:1: note: candidate: 'template<class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> std::all_of(_ExecutionPolicy&&, _ForwardIterator, _ForwardIterator, _Predicate)'
   30 | all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred);
      | ^~~~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:30:1: note:   candidate expects 4 arguments, 3 provided
Language: C++

#includ#include <bits/stdc++.h>
#define N 100005
using namespace std;
typedef long long ll;
int vis[N],a[N];
void creat()
{
    for(int i=2; i<=400; i++)
    {
        if(!vis[i])
        {
            for(int j=i*2; j<=N; j+=i)
                vis[j]=1;
        }
    }
}
int main()
{

    memset(vis,0,sizeof(vis));
    creat();
    vis[1]=1;
    int sum=0,n;
    for(int i=1; i<=N; i++)
    {
        if(i%2==1)
        {
            if(vis[i]==0&&vis[(i+1)/2]==0)
                sum++;
        }

        a[i]=sum;
    }
    while(scanf("%d",&n)==1)
    {
        while(n--)
        {
            int c,b;
            scanf("%d%d",&c,&b);

            printf("%d\n",a[b]-a[c-1]);
        }
    }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ#include <bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:20:5: error: 'memset' was not declared in this scope
   20 |     memset(vis,0,sizeof(vis));
      |     ^~~~~~
a.cc:1:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
  +++ |+#include <cstring>
    1 | #includ#include <bits/stdc++.h>
a.cc:34:11: error: 'scanf' was not declared in this scope
   34 |     while(scanf("%d",&n)==1)
      |           ^~~~~
a.cc:41:13: error: 'printf' was not declared in this scope
   41 |             printf("%d\n",a[b]-a[c-1]);
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #includ#include <bits/stdc++.h>
Language: C++

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

int main()
{
  int A, B;
  cin >> A >> B;
  string letter;
  cin >> letter;

  for (int i = 0; i < A+B+1; i++) {
    if (i == A) {
      if (letter[i] != '-') {
        cout << "No";
        return 0;
      }
    } else {
      if (letter[i] == '-') {
        cout << "No";
        return 0;
    }
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
   26 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: Java

package codes;

import java.util.Scanner;
import java.io.PrintWriter;

public class TaskA {
    public void solve(int testNumber, Scanner in, PrintWriter out) {
        int m = in.nextInt();
        out.println(48 - m);
    }
}


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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class template {

    static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;

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

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

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

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

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

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

    public static void main (String[] args) {
        FastReader sc = new FastReader();
        int m = sc.nextInt();
        System.out.println(48 - m);
    }
}


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







// ABC 084.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include "iostream"

using namespace std;

int main()
{
	int M;
	cout << 24 - M + 24;
	return 0;
}



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

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

public class Solution {

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

        System.out.println(24+24-M);

        in.close();
    }
}


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

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

int main() 
{
    int m,y;
    
    cin >> m;
    
    y=24*2-m;
    count<<y<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   11 |     count<<y<<endl;
      |     ~~~~~^~~
Language: C++

#include <iostream>
using namespace std;

int main() 
{
    int m,y;
    
    cin >> m;
    
    y=24*2-m;
    count<<y<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'count' was not declared in this scope
   11 |     count<<y<<endl;
      |     ^~~~~
Language: C++

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

int main() 
{
    int m,y;
    
    cin >> m;
    
    y=24-m;
    count<<y+24<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   11 |     count<<y+24<<endl;
      |     ~~~~~^~~~~~
Language: C++

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

int main()
{
	int m;
	cin >> m;
	
	for (int m>=1; m<=23; m++)
	   cout << 24-m+24 << endl;
	   
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected ';' before '>=' token
    9 |         for (int m>=1; m<=23; m++)
      |                   ^~
      |                   ;
a.cc:9:19: error: expected primary-expression before '>=' token
    9 |         for (int m>=1; m<=23; m++)
      |                   ^~
a.cc:9:29: error: expected ')' before ';' token
    9 |         for (int m>=1; m<=23; m++)
      |             ~               ^
      |                             )
a.cc:9:34: error: expected ';' before ')' token
    9 |         for (int m>=1; m<=23; m++)
      |                                  ^
      |                                  ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	cin>>a>>b;
	cin>>s;
	for(int i=0;i<s.size();i++){
		if(i==a){
			if(s[i]!='-'){
				cout<<"No"<<endl;
				return 0;
			}
		}
		else if(!isdigit(s[i])){
			cout<<"No"<<endl;
			return 0;
		}
	}
	cout<<"Yes"<<endl;
	return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d",&n);
	printf("%d",48-n);
	return 0;
}

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

#include <stdio.h>
 
main(void){
int N=0,str=0;
scanf("%d",str)
N=48-str;
printf(%d,N);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:16: error: expected ';' before 'N'
    5 | scanf("%d",str)
      |                ^
      |                ;
    6 | N=48-str;
      | ~               
main.c:7:8: error: expected expression before '%' token
    7 | printf(%d,N);
      |        ^
Language: C

#include <stdio.h>
 
main(void){
int N=0,str=0;
scanf("%u",str)
N=48-str;
printf(%d,N);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:16: error: expected ';' before 'N'
    5 | scanf("%u",str)
      |                ^
      |                ;
    6 | N=48-str;
      | ~               
main.c:7:8: error: expected expression before '%' token
    7 | printf(%d,N);
      |        ^
Language: C

#include <stdio.h>
 
main(void){
int N=0,M=0;
scanf("%u",str)
N=48-str;
printf(%d,N);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:5:12: error: 'str' undeclared (first use in this function)
    5 | scanf("%u",str)
      |            ^~~
main.c:5:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:16: error: expected ';' before 'N'
    5 | scanf("%u",str)
      |                ^
      |                ;
    6 | N=48-str;
      | ~               
main.c:7:8: error: expected expression before '%' token
    7 | printf(%d,N);
      |        ^
Language: C

#include <stdio.h>
 
main(int M){
int N=0;
N=48-M;
printf(%d,N);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(int M){
      | ^~~~
main.c: In function 'main':
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d,N);
      |        ^
Language: C

#include <stdio.h>

main(){
int N=0;
N=48-M;
printf(%d,N);
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:5:6: error: 'M' undeclared (first use in this function)
    5 | N=48-M;
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:8: error: expected expression before '%' token
    6 | printf(%d,N);
      |        ^
Language: C++

#include<stdio.h>
#define MOJISU 12
#define FHATA 0
#define THATA 1
int a,b;
char s[MOJISU],hata;
int solva(void);
int main(){
	scanf("%d%d%s",&a,&b,c);
	hata=solva();
	if(hata){
		printf("Yes");
	}else{
		printf("No");
	}
	return 0;
}
int solva(){
	for(int i=0;i<a;i++){
		if(s[i]<'0'){
			return FHATA;
		}
	}
	if(s[a]!='-') return FHATA;
	for(int i=0;i<b;i++){
		if(s[1+a+i]<'0'){
			return FHATA;
		}
	}
	return THATA;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: 'c' was not declared in this scope
    9 |         scanf("%d%d%s",&a,&b,c);
      |                              ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
cin >> m;
cout <<48-m << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'm' was not declared in this scope; did you mean 'tm'?
    5 | cin >> m;
      |        ^
      |        tm