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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc:4:3: error: expected identifier before 'int'
    4 |   int main() {
      |   ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | 
    4 |   int main() {
      |   ~~~           
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> a >> endl;
      |   ^~~
a.cc:6:15: error: 'endl' was not declared in this scope
    6 |   cin >> a >> endl;
      |               ^~~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 48-a << endl;
      |   ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'M' was not declared in this scope
    5 |   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: 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 month,day,time,M;
    int month_l =12;
    int day_l	=31;
    int time_l  =24; 
	month =12;
    day	  =30;
  	cin >> M;
 　 time  =　M; 
	cout << (month_l-month)*30*12+(day_l-day)*24+(time_l-time)*1 << endl;
}


Compiler output:
a.cc:12:2: error: extended character 　 is not valid in an identifier
   12 |  　 time  =　M;
      |  ^
a.cc:12:12: error: extended character 　 is not valid in an identifier
   12 |  　 time  =　M;
      |            ^
a.cc: In function 'int main()':
a.cc:12:2: error: '\U00003000' was not declared in this scope
   12 |  　 time  =　M;
      |  ^~
Language: C++

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

int main() {
	int month,day,time,M;
    int month_l =12;
    int day_l	=31;
    int time_l  =24; 
	month =12;
    day	  =30;
  	cin >> M;
 　 time  =M; 
	cout << (month_l-month)*30*12+(day_l-day)*24+(time_l-time)*1 << endl;
}


Compiler output:
a.cc:12:2: error: extended character 　 is not valid in an identifier
   12 |  　 time  =M;
      |  ^
a.cc: In function 'int main()':
a.cc:12:2: error: '\U00003000' was not declared in this scope
   12 |  　 time  =M;
      |  ^~
Language: C++

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

int main() {
	int month,day,time,M;
    int month_l =12;
    int day_l	=31;
    int time_l  =24; 
	month =12;
    day	  =30;
    time  =M; 
  	cin >> M;
 　 time  =M; 
	cout << (month_l-month)*30*12+(day_l-day)*24+(time_l-time)*1 << endl;
}


Compiler output:
a.cc:13:2: error: extended character 　 is not valid in an identifier
   13 |  　 time  =M;
      |  ^
a.cc: In function 'int main()':
a.cc:13:2: error: '\U00003000' was not declared in this scope
   13 |  　 time  =M;
      |  ^~
Language: C++

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

int main() {
  int m;
  
  cin >> m;
  
  cout << 24 + ( 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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int A;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin>> A;
      |   ^~~
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout<< 48-A<< endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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:6:3: error: expected primary-expression before 'int'
    6 |   int=A;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: 'cin' does not name a type
    8 |   cin>> A;
      |   ^~~
a.cc:10:3: error: 'cout' does not name a type
   10 |   cout<< 48-A<< endl;
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main() {
  int M;
  int x = 24　+ (24-M);
  
  // 変数Mで入力を受け取る
  cin >> M;

  cout << x << endl;
}


Compiler output:
a.cc:6:11: error: extended character 　 is not valid in an identifier
    6 |   int x = 24　+ (24-M);
      |           ^
a.cc: In function 'int main()':
a.cc:6:11: error: unable to find numeric literal operator 'operator""\U00003000'
    6 |   int x = 24　+ (24-M);
      |           ^~~~
Language: C++

#include <bits/stdc++.h>

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

    cout <<  48 - M << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: 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:7:5: 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:24: 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<stdio.h>
int main(void){
  int a;
  scanf("%d",&a);
  printf("24*2-%d",a);
  return0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: 'return0' undeclared (first use in this function)
    6 |   return0;
      |   ^~~~~~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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

int main() {
  
  int M ;
  
  cin>>x

  cout << 48-x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'x' was not declared in this scope
    8 |   cin>>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:11: error: expected ';' before numeric constant
    8 |   cin >> M
      |           ^
      |           ;
    9 | 
   10 |   48-M=x
      |   ~~
Language: C++

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

int main() {
  
  int M ;
  
  48-"M"=x

  cout << x << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator-'
    8 |   48-"M"=x
      |   ~~^~~~
      |   |  |
      |   |  const char [2]
      |   int
a.cc:8:10: 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 ;

  cout << 48- "M" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: invalid operands of types 'int' and 'const char [2]' to binary 'operator-'
    8 |   cout << 48- "M" << endl;
      |           ~~^ ~~~
      |           |   |
      |           int const char [2]
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int limit_time;
  cin >> limit_time;
  if(limit_time > 12){
  cout << limit_time + 11 << endl;
   else{
  cout << limit_time + 23 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected '}' before 'else'
    9 |    else{
      |    ^~~~
a.cc:7:22: note: to match this '{'
    7 |   if(limit_time > 12){
      |                      ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> limit_time;
      |   ^~~
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << limit_time + 24 << endl;
      |   ^~~~
a.cc:7:30: error: 'endl' was not declared in this scope
    7 |   cout << limit_time + 24 << 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 M;
  
  cin >> M;
  cout << 24 - M << 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 M;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> M;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 24 - M << endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:10: error: 'M' was not declared in this scope
    5 |   cin >> M;
      |          ^
a.cc:5:11: error: expected '}' before ';' token
    5 |   cin >> M;
      |           ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cout' does not name a type
    6 |   cout << 24 - M << endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
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: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 M,x;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> M;
      |   ^~~
a.cc:7:3: error: 'x' does not name a type
    7 |   x = 24 - M;
      |   ^
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << x << 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 << end1;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: 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 << 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;
  int N = 24;
  
  cin >> M;
  N -= M
  cout << "12月30日の" << M << "時から次の年になるまでは" << M-N << "時間です。" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected ';' before 'cout'
    9 |   N -= M
      |         ^
      |         ;
   10 |   cout << "12月30日の" << M << "時から次の年になるまでは" << M-N << "時間です。" << endl;
      |   ~~~~
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:8:11: error: expected ';' before 'cout'
    8 |   x = 48-M
      |           ^
      |           ;
    9 | 
   10 |    cout << x << endl;
      |    ~~~~
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:8:11: error: expected ';' before 'cout'
    8 |   x = 48-M
      |           ^
      |           ;
    9 | 
   10 |    cout << x >> endl;
      |    ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cout'
    8 |   x = 48-M
      |           ^
      |           ;
    9 | 
   10 |    cout << x << enxdl;
      |    ~~~~    
a.cc:10:23: error: expected '}' at end of input
   10 |    cout << x << enxdl;
      |                       ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cout'
    8 |   x = 48-M
      |           ^
      |           ;
    9 | 
   10 |    cout << x >> enxdl;
      |    ~~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc:2:1: error: 'usind' does not name a type
    2 | usind namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: 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:21: 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>
usind namespace std;

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

Compiler output:
a.cc:2:1: error: 'usind' does not name a type
    2 | usind namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: 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:5:10: error: 'M' was not declared in this scope
    5 |   cin >> M;
      |          ^
a.cc:6:3: 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:21: 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 m
  cin>>m;
    cout<<48-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:14: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |     cout<<48-m<< endl;
      |              ^
      |              tm
Language: C++

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

int main() {
int a;
a=48;
cin>>b;
c=a-b;
cout<<c<<endl;
  

}


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

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

int main() {
int a;
a=(365-363)*24;
cin>>b;
c=a-b;
cout<<c<<endl;
  

}


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

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

int main() {
int a;
a=(365-363)*24;
cin>>b;
cout<<a-b<<endl;
  

}


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

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

int main() {
int a;
a=(365-363)*24;
cin>>M;
cout<<a-M<<endl;
  

}


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

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

int main() {
int a;
a=(365-363)*24;
cin>> M;
cout<<a-M<<endl;
  

}


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

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

int main() {
int a;
a=(365-363)*24
cin>> M;
cout<<a-M<<endl;
  

}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'cin'
    6 | a=(365-363)*24
      |               ^
      |               ;
    7 | cin>> M;
      | ~~~            
a.cc:8:9: error: 'M' was not declared in this scope
    8 | cout<<a-M<<endl;
      |         ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: expected ';' before 'x'
    6 |                 cin >> M
      |                         ^
      |                         ;
    7 |         x = 48 - M
      |         ~
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:8:39: error: expected '}' at end of input
    8 |         cout << (24 - M) + 24 << endl;
      |                                       ^
a.cc:4:12: 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:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before 'cin'
    6 |         cin>>m;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<48-m<< endl;
      |         ^~~~
a.cc:7:18: error: 'm' was not declared in this scope
    7 |         cout<<48-m<< endl;
      |                  ^
a.cc:7:22: 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:3: error: expected initializer before 'cin'
    6 |   cin>>m;
      |   ^~~
a.cc:7:14: error: 'm' was not declared in this scope; did you mean 'tm'?
    7 |     cout<<48-m<< endl;
      |              ^
      |              tm
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: expected ';' before 'printf'
    4 |   scanf("%d",&M)
      |                 ^
      |                 ;
    5 |     printf("%d\n",48 - M);
      |     ~~~~~~
Language: C++

#include <stdio.a>

int main (){
  int m, sum;
  scanf("%d",m);
  1 =< m <= 23;
   sum=0;
     sum=+ 24 - m;
  printf("%d\n",sum);
  return 0;
  
}

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

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

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


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

#include <stdio.h>
using namespace std;

int main()
{
  int M, x;
  int leastTime = 48;
  cin >> M >> endl;
  
  if(M > 48 || M < 0)
  {
    cout << "error" << endl;
    return 0;
  }
  x = leastTime - M;
  cout >> "次の年まで後、" >> x >> "時間です。" >> endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> M >> endl;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:15: error: 'endl' was not declared in this scope
    8 |   cin >> M >> endl;
      |               ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "error" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout >> "次の年まで後、" >> x >> "時間です。" >> endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main{
  int m;
  cin >> m;
  cout << 48 - m << 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 m;
      |   ^~~
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 >> m;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 48 - m << 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;
  cout << 24 * 2 - m << 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 m;
      |   ^~~
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 >> m;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout << 24 * 2 - m << 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;
  cout << 48 - M << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected '}' at end of input
    7 |   cout << 48 - M << endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ';' before 'endl'
    7 |   cout << 24 + (24 - M) endl;
      |                        ^~~~~
      |                        ;
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:16: 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;
sin >> M;
cout << 48-M << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>>'
    6 | sin >> M;
      | ~~~~^~~~
Language: C++

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

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

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

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

int main() {
  int M;
  cin >> M;
  cout << "12月"30日の" << M << "時から次の年になるまでは" << 48 - M << "時間です。" << endl;
}


Compiler output:
a.cc:7:58: error: extended character 。 is not valid in an identifier
    7 |   cout << "12月"30日の" << M << "時から次の年になるまでは" << 48 - M << "時間です。" << endl;
      |                                                          ^
a.cc:7:84: warning: missing terminating " character
    7 |   cout << "12月"30日の" << M << "時から次の年になるまでは" << 48 - M << "時間です。" << endl;
      |                                                                                    ^
a.cc:7:84: error: missing terminating " character
    7 |   cout << "12月"30日の" << M << "時から次の年になるまでは" << 48 - M << "時間です。" << endl;
      |                                                                                    ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before numeric constant
    7 |   cout << "12月"30日の" << M << "時から次の年になるまでは" << 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:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> M;
      |     ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << (48 - M) << endl;
      |     ^~~~
a.cc:5:25: error: 'endl' was not declared in this scope
    5 |     cout << (48 - M) << endl;
      |                         ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int mian()':
a.cc:10:1: warning: no return statement in function returning non-void [-Wreturn-type]
   10 | }
      | ^
/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<bit/stdc++.h>
using namespace std;

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


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

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

int main(){
  cin >> M;
  x = 24 - M;
  cout << 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;
      |          ^
a.cc:7:3: error: 'x' was not declared in this scope
    7 |   x = 24 - M;
      |   ^
Language: C++

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

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


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

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

int main() {
  int M;
  int x = 48 - M;

  cin >> M >> x;
  
  cout << "12月30日の" + M + "時から次の年になるまでは" + x + "時間です。" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: invalid operands of types 'const char*' and 'const char [37]' to binary 'operator+'
   10 |   cout << "12月30日の" + M + "時から次の年になるまでは" + x + "時間です。" << endl;
      |           ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        |     |
      |                        |     const char [37]
      |                        const char*
Language: C++

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

int main() {
  int M;
  int x = M + 24;

  cin >> M >> x;
  
  cout << "12月30日の" + M + "時から次の年になるまでは" + x + "時間です。" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: invalid operands of types 'const char*' and 'const char [37]' to binary 'operator+'
   10 |   cout << "12月30日の" + M + "時から次の年になるまでは" + x + "時間です。" << endl;
      |           ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        |     |
      |                        |     const char [37]
      |                        const char*
Language: C++

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

int main() {
  int M, x;

  cin >> M >> x;
  
  cout << "12月30日の" + M + "時から" + "次の年になるまでは" + x + "時間です。" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: invalid operands of types 'const char*' and 'const char [10]' to binary 'operator+'
    9 |   cout << "12月30日の" + M + "時から" + "次の年になるまでは" + x + "時間です。" << endl;
      |           ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
      |                        |     |
      |                        |     const char [10]
      |                        const char*
Language: C++

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

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

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

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

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:9:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    9 |   cint >> M;
      |   ^~~~
      |   uint
Language: C++

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

int main(){
  int M;
  int x;
  int s;
  
  cint << M;
  x = 24-M+24;
  cout >> 2x;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | 
    4 | int main(){
      | ~~~                 
a.cc: In function 'int main()':
a.cc:9:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
    9 |   cint << M;
      |   ^~~~
      |   uint
a.cc:11:11: error: unable to find numeric literal operator 'operator""x'
   11 |   cout >> 2x;
      |           ^~
Language: C++

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

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

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

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

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


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

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

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

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

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


Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int M;
      | ^~~
a.cc:6:2: error: expected unqualified-id before '{' token
    6 |  {
      |  ^
Language: C++

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

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


Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int M;
      | ^~~
a.cc:7:1: error: expected unqualified-id before '{' token
    7 | {
      | ^
Language: C++

include<iostream>
using namespace std;

int main()
{
    int M=0;
    while((M<1)||(M>23))
    {
cin>>M;
}

cout<<48-M<<endl;
return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | cin>>M;
      | ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<48-M<<endl;
      | ^~~~
a.cc:12:13: error: 'endl' was not declared in this scope
   12 | cout<<48-M<<endl;
      |             ^~~~
Language: C++

include<iostream>
using namespace std;

int main()
{
    int M=0;
    while((M<1)||(M>23))
    {
cin>>M;
}

cout<<48-M<,endl;
return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | cin>>M;
      | ^~~
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout<<48-M<,endl;
      | ^~~~
a.cc:12:12: error: expected primary-expression before ',' token
   12 | cout<<48-M<,endl;
      |            ^
a.cc:12:13: error: 'endl' was not declared in this scope
   12 | cout<<48-M<,endl;
      |             ^~~~
Language: C++

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

int main(){
  int M;
  int Max_hour = 24 * 2;
  
  cin >> M;
  cout << max_hour - M << endl;
}


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

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

int main{
  int a;
  cin >> a;
  cout << (24 - a) + 24 << 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) + 24 << 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;
  int x = 48 - M;
  cout << x << ;
}



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

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

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



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

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

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

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

int main{
  int M;
  cin >> M;
  cout <<  48 - M << 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 M;
      |   ^~~
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 >> M;
      |   ^~~
a.cc:7:3: error: 'cout' does not name a type
    7 |   cout <<  48 - M << endl;
      |   ^~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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 <bits/stdc++.h>
using name space std;
int(main){
  int M;
  cin >> M;
  cout << 48 - M <<endl;
}

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

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

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

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

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >>a;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<48-a<<endl;
      |   ^~~~
a.cc:6:15: error: 'endl' was not declared in this scope
    6 |   cout<<48-a<<endl;
      |               ^~~~
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  // ここにプログラムを追記
}#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  cin >> a;
  cout << (24 - a) + 24 << endl;
}

Compiler output:
a.cc:6:2: error: stray '#' in program
    6 | }#include <bits/stdc++.h>
      |  ^
a.cc:6:3: error: 'include' does not name a type
    6 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:9:5: error: redefinition of 'int main()'
    9 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    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:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> M;
      |   ^~~
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << 48 -M << endl;
      |   ^~~~
a.cc:6:20: error: 'endl' was not declared in this scope
    6 |   cout << 48 -M << endl;
      |                    ^~~~
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'int'
    6 |   int x = 48-M
      |   ^~~
a.cc:8:4: error: expected '}' at end of input
    8 |   {
      |   ~^
a.cc:8:4: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^