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

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

int main() {
  int a 
  cin >> a;
  cout << 48 - a << endl; // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a;
      |   ^~~
a.cc:7:16: error: 'a' was not declared in this scope
    7 |   cout << 48 - a << endl; // ここにプログラムを追記
      |                ^
Language: C++

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

int main() {
  int a 
  cin >> a;
  cout << 24 + 24 - a << endl; // ここにプログラムを追記
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a;
      |   ^~~
a.cc:7:21: error: 'a' was not declared in this scope
    7 |   cout << 24 + 24 - a << endl; // ここにプログラムを追記
      |                     ^
Language: C++

#include <bits/stdc++.h>
int main() {
  int M,x;
  int M+x = 48;
  cin >> M >> endl;
  cout << x << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: expected initializer before '+' token
    4 |   int M+x = 48;
      |        ^
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> M >> endl;
      |   ^~~
      |   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:5:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cin >> 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)
      |     ^~~~
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << x << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
  int a;
  cin>>a;
  cout<< 48-a <<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<dots/stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  cout<<48-a<<endl;
}

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'cout'
    7 |   x = 48 - M
      |             ^
      |             ;
    8 |   cout << x <<endl;
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'cout'
    7 |   x = 24 - M
      |             ^
      |             ;
    8 |   cout << x <<endl;
      |   ~~~~
Language: C++

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

int main() {
  int hour;
  cin >> hour;
  cout << 24 + (24 - hour); << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected primary-expression before '<<' token
    7 |   cout << 24 + (24 - hour); << endl;
      |                             ^~
Language: C++

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

int main(){
  int M;
  cin >> M >>;
  
  cout << "24-M+24" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before ';' token
    6 |   cin >> M >>;
      |              ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'cort' was not declared in this scope; did you mean 'cbrt'?
   10 |   cort << x << endl;
      |   ^~~~
      |   cbrt
Language: C++

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

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

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

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

int main() {
  // ここに追記
  int M
  cout << (24-M)+24  << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cout'
    7 |   cout << (24-M)+24  << endl;
      |   ^~~~
Language: C++

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

int main() {
  int M;

  // 変数aで入力を受け取る
  cin >> M;

  cout << 48-M << endl;
  int x;
  
  x=48-M
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected ';' before '}' token
   13 |   x=48-M
      |         ^
      |         ;
   14 | 
   15 | }
      | ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cim' was not declared in this scope
    5 |   cim>>m;
      |   ^~~
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incude<bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout<<48-M<<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:15: error: 'endl' was not declared in this scope
    7 |   cout<<48-M<<endl;
      |               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incude<bits/stdc++.h>
Language: C++

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

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


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

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

int main() {
  // ここにプログラムを追記
  int M;
  cin >> M >> x;
  cout << 48 - M << endl;  	
}

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

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

int main() {
  // ここにプログラムを追記
  int M, x
  cin >> M;
  48 = M + x;
  cout >> x >>endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> M;
      |   ^~~
a.cc:8:12: error: 'x' was not declared in this scope
    8 |   48 = M + x;
      |            ^
Language: C++

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

int main() {
  // ここにプログラムを追記
  int M;
  cin >> M;
  48 = M + x;
  cout >> x >>endl;
    
}

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

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

int main() {
  // ここにプログラムを追記
  int M;
  cin >> M >> x;
  cout >> x >>endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'x' was not declared in this scope
    7 |   cin >> M >> x;
      |               ^
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:6:10: error: expected ';' before 'cout'
    6 |   cin >>M
      |          ^
      |          ;
    7 |     cout <<"48-M" <<endl;
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cout'
    6 |     cout <<(24-M)+24 <<endl;
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // 一年の秒数
  int M;
  cin>>M

  cout << (24-M)+24 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before 'cout'
    7 |   cin>>M
      |         ^
      |         ;
    8 | 
    9 |   cout << (24-M)+24 << endl;
      |   ~~~~
Language: C++

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

int main() {

int M;  

cin >> M;
    
int A = 48 - M

cout << A << endl;
}

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

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

int main() {

int M;  

cin >> M;
    
int A = 48 - M

cout << "A" << endl;
}

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

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

int main() {

int M;  

cin >> M;
    
int A = 48 - M

cout << "A" << endl;

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

#include <bits/stdctt.h>
using name space std;

int main() {

int M;  

cin >> M;
    
int A = 48 - M

cout << "A" << endl;
}

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

#include <bits/stdctt.h>
using name space std;

int main() {

int M;  

cin >> M;
    
int A = 48 - M

cout << "A" << endl;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before '<' token
    7 |   M =< 23, M >= 1;
      |      ^
Language: C++

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

int main() {
  int M;
  
  M =< 23, M >= 1; 
  
  cout << 24-M << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected primary-expression before '<' token
    7 |   M =< 23, M >= 1;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'M' was not declared in this scope
    5 |   cout << 24 - M <<
      |                ^
a.cc:6:1: error: expected primary-expression before '}' token
    6 | }
      | ^
Language: C

#include<stdio.h>

int main(void)
{
    int m;

    scanf("%d", &m);

    printf("%d\n", (48-m);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:26: error: expected ')' before ';' token
    9 |     printf("%d\n", (48-m);
      |           ~              ^
      |                          )
main.c:11:14: error: expected ';' before '}' token
   11 |     return 0;
      |              ^
      |              ;
   12 | }
      | ~
Language: C++

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

int main() {
  int a
    cin >> a;
  cout << 24 + (24 - a) << endl;
}

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

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

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

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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 stdc;

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

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << 48-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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << 48-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 stdc;

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

Compiler output:
a.cc:2:17: error: 'stdc' is not a namespace-name
    2 | using namespace stdc;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << 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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout << 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() {
  int M; 
  cin >> M ;
  cont << 42 -M << endl;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'cout'
    9 |   x = 24 - M
      |             ^
      |             ;
......
   12 |   cout << x + 24 << endl ;
      |   ~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'cout'
    9 |   x = 24 - M
      |             ^
      |             ;
......
   12 |   cout << x << endl ;
      |   ~~~~
Language: C++

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

int main() {
  int M;
  cin >> M;
  cout << 24+(24-M) << emdl;
}

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

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includes; did you mean #include?
    1 | #includes <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includes <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: 'endl' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includes <bits/stdc++.h>
Language: C++

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

int main() {
  int M;
  cin >> M;
  for(M >= 1 || M <= 23);
  cout << M << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before ')' token
    7 |   for(M >= 1 || M <= 23);
      |                        ^
      |                        ;
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
a.cc:8:21: error: expected ')' before '}' token
    8 |   cout << M << endl;
      |                     ^
      |                     )
    9 | }
      | ~                    
a.cc:7:6: note: to match this '('
    7 |   for(M >= 1 || M <= 23);
      |      ^
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includes; did you mean #include?
    1 | #includes <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includes <bits/stdc++.h>
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 48 - M <<endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:20: error: 'endl' was not declared in this scope
    7 |   cout << 48 - M <<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #includes <bits/stdc++.h>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected ';' before '}' token
    7 |   cout << 24 - M << endl
      |                         ^
      |                         ;
    8 | }
      | ~
Language: C++

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

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

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

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

Compiler output:
a.cc:2:1: error: 'usung' does not name a type
    2 | usung namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:4: 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:4: 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:16: 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 <bit/stdc++.h>
using namespace std;

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

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

int M; int main() { scanf("%d",&M); printf("%d\n",48-M); }


Compiler output:
a.cc: In function 'int main()':
a.cc:1:21: error: 'scanf' was not declared in this scope
    1 | int M; int main() { scanf("%d",&M); printf("%d\n",48-M); }
      |                     ^~~~~
a.cc:1:37: error: 'printf' was not declared in this scope
    1 | int M; int main() { scanf("%d",&M); printf("%d\n",48-M); }
      |                                     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int M; int main() { scanf("%d",&M); printf("%d\n",48-M); }
Language: C++

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

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

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

int main(){
  int M;
  
  cin >> M;
  cout << "24-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 <bits/stdc++.h>
using namespace std;

int main() {
  // ここにプログラムを追記
  int a;
  cin>>a;
  cout<< 48-a endl;
}

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

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

int main(){
  int M;
  
  cin >> M;
  cout << 24-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 <bits/stdc++.h>
using namespace std;

int main() {
  int = A,x;
    cin >> A ;
  x = 48-A;
  cout<< x <<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = A,x;
      |       ^
a.cc:6:12: error: 'A' was not declared in this scope
    6 |     cin >> A ;
      |            ^
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = 48-A;
      |   ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> M;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |   ^~~~
a.cc:7:21: error: 'endl' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |                     ^~~~
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:6:13: error: expected ';' before 'cout'
    6 |     cin >> M
      |             ^
      |             ;
    7 |     cout << 48 - M << endl;
      |     ~~~~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 48-a << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main{
  int a;
  cin >> a;
  cout << 24 - a << endl;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 24 - a << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main{
  int a
  cin >> a;
  cout << 24 - a << endl;
}


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 24 - a << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 48 - a << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

int main{
  int a
  cin >> a;
  cout << 24 - a << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name'
    2 | using name std;
      |       ^~~~
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 24 - a << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

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

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

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

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

int main() {
  int M;
  cin >> M;
  nokori = M + 24;
  cout << nokori << endl;
}

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

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

int main() {
  int M;
  nokori = M+24;
  cout << nokori << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'nokori' was not declared in this scope
    6 |   nokori = M+24;
      |   ^~~~~~
Language: C++

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

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

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

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

int main(){
  int M;
  
  cin >> M;
  
  if ( 1<= M <= 23){
    cout << 48 - M << endl;
  }
  
  else {
    cout << "error" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int M;
  
  cin >> M;
  
  if ( 1<= M <= 23){
    cout << 48 - M << endl;
  }
  
  else {
    cout << "error" << endl;
  }

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incclude; did you mean #include?
    1 | #incclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incclude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << 48 - M << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |     cout << 48 - M << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incclude <bits/stdc++.h>
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "error" << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:24: error: 'endl' was not declared in this scope
   14 |     cout << "error" << endl;
      |                        ^~~~
a.cc:14:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
  int M;
  
  cin >> M;
  
  if ( 1<= M <= 23){
    cout << 48 - M << endl;
  }
  
  else {
    cout << error << endl;
  }

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incclude; did you mean #include?
    1 | #incclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> M;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incclude <bits/stdc++.h>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << 48 - M << endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:23: error: 'endl' was not declared in this scope
   10 |     cout << 48 - M << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incclude <bits/stdc++.h>
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << error << endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:13: error: 'error' was not declared in this scope
   14 |     cout << error << endl;
      |             ^~~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << error << endl;
      |                      ^~~~
a.cc:14:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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:6:14: error: expected primary-expression before ';' token
    6 |   cin >> M >>;
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 't' was not declared in this scope
    8 |   t = 24 - M + 24;
      |   ^
Language: C++

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


int main(){
    int m;
    cin>>m;

    cout<<(48-m))<<endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before ')' token
   12 |     cout<<(48-m))<<endl;
      |                 ^
      |                 ;
Language: C++

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

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


Compiler output:
a.cc:7:25: error: extended character 　 is not valid in an identifier
    7 |   cout << 24 + (24 - M )　<< endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:7:25: error: expected ';' before '\U00003000'
    7 |   cout << 24 + (24 - M )　<< endl;
      |                         ^~
      |                         ;
Language: C++

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

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

Compiler output:
a.cc:7:17: error: extended character 　 is not valid in an identifier
    7 |   cout << 24 + (24　- M )　<< endl;
      |                 ^
a.cc:7:26: error: extended character 　 is not valid in an identifier
    7 |   cout << 24 + (24　- M )　<< endl;
      |                          ^
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> M
      |   ^~~
Language: C++

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

int main() {
  int m;
  cin >> a;
  cout << 24 - m + 24;
}


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 a;
  cin >> a
  cout << (24 - a) + 24 << endl;
}

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

int main(){
  print(48-M);
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'cout' was not declared in this scope
    2 |         cout<<48-M<<endl;
      |         ^~~~
a.cc:2:18: error: 'M' was not declared in this scope
    2 |         cout<<48-M<<endl;
      |                  ^
a.cc:2:21: error: 'endl' was not declared in this scope
    2 |         cout<<48-M<<endl;
      |                     ^~~~
Language: C++

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

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

int M;
	cin>>M;
	cout<<48-M<<endl;

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin>>M;
      |         ^~~
a.cc:3:9: error: 'cout' does not name a type
    3 |         cout<<48-M<<endl;
      |         ^~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>M;
      |   ^~~
a.cc:4:3: error: 'cout' was not declared in this scope
    4 |   cout<<24+24-M<<endl;
      |   ^~~~
a.cc:4:18: error: 'endl' was not declared in this scope
    4 |   cout<<24+24-M<<endl;
      |                  ^~~~
Language: C++

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

int main() {
  int a
  cin >> a;
  cout << (24 - a) + 24 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> a;
      |   ^~~
a.cc:7:17: error: 'a' was not declared in this scope
    7 |   cout << (24 - a) + 24 << endl;
      |                 ^
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:5: error: expected initializer before 'cin'
    7 |     cin >> M;
      |     ^~~
a.cc:8:22: error: 'M' was not declared in this scope
    8 |         cout << 48 - M <<endl;
      |                      ^
Language: C++

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

int main(){
  int M,x;
  cin >> M;
  x = 48 - M;
  cout << x << end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'end1' was not declared in this scope
    8 |   cout << x << end1;
      |                ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'end1' was not declared in this scope
    7 |   cout << 48 - M << end1;
      |                     ^~~~
Language: C++

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

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

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

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

int main() {
  int A:
  cin << A;
  cout >> 24-A+24 >>endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: found ':' in nested-name-specifier, expected '::'
    5 |   int A:
      |        ^
      |        ::
a.cc:5:7: error: 'A' has not been declared
    5 |   int A:
      |       ^
a.cc:6:7: error: qualified-id in declaration before '<<' token
    6 |   cin << A;
      |       ^~
a.cc:7:14: error: 'A' was not declared in this scope
    7 |   cout >> 24-A+24 >>endl;
      |              ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: lvalue required as left operand of assignment
    8 |   48-M = x;
      |   ~~^~
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected unqualified-id before numeric constant
    7 |   int 48-M = x;
      |       ^~
Language: C++

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

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


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

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

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


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

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

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


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

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

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


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

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

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


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

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

int main() {
  int M = 11;
  cin >> M;
  count << 24-M <<;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
    7 |   count << 24-M <<;
      |   ~~~~~~^~~~~~~
a.cc:7:19: error: expected primary-expression before ';' token
    7 |   count << 24-M <<;
      |                   ^
Language: C++

from sys import stdin

def main():
    d = int(stdin.readline())
    ny = 48 - d

    print(ny)

if __name__ == '__main__':
    main()

Compiler output:
a.cc:9:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    9 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from sys import stdin
      | ^~~~