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

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

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

  int m;
  cin >> m;

  cout << 48 - m) << '\n';

  return (0);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before ')' token
   13 |   cout << 48 - m) << '\n';
      |                 ^
      |                 ;
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:26: error: expected '}' at end of input
    7 |   cout << 24 - M << endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#includ (bits/stdc++.h)
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ (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 | #includ (bits/stdc++.h)
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 24 - 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 << 24 - 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 | #includ (bits/stdc++.h)
a.cc:7:26: error: expected '}' at end of input
    7 |   cout << 24 - M << endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#includ "bits/stdc++.h"
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ "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 | #includ "bits/stdc++.h"
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 24 - 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 << 24 - 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 | #includ "bits/stdc++.h"
a.cc:7:26: error: expected '}' at end of input
    7 |   cout << 24 - 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 , x ;
  cin >> M ;
  cout << x = 48 - M << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << x = 48 - M << endl;
      |               ~~~~~~~^~~~~~~
Language: C++

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int M;
  cin >> M;
 
  int x = 24 + M;
  cin >> x;
  
  cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
 
}

Compiler output:
a.cc:11:11: error: extended character 　 is not valid in an identifier
   11 |   cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:11:11: error: unable to find string literal operator 'operator""\U00003000' with 'const char [14]', 'long unsigned int' arguments
   11 |   cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
      |           ^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int ;
  cin >> M;
 
  int x = 24 + M;
  cin >> x;
  
  cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
 
}

Compiler output:
a.cc:11:11: error: extended character 　 is not valid in an identifier
   11 |   cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
      |           ^
a.cc: In function 'int main()':
a.cc:5:3: error: declaration does not declare anything [-fpermissive]
    5 |   int ;
      |   ^~~
a.cc:6:10: error: 'M' was not declared in this scope
    6 |   cin >> M;
      |          ^
a.cc:11:11: error: unable to find string literal operator 'operator""\U00003000' with 'const char [14]', 'long unsigned int' arguments
   11 |   cout << "12月30日の"　<< M << "時から次の年になるまでは" << x << "時間です。" << endl;
      |           ^~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int M;
  cin >> M;
 
  int x = 24 + M
  cout << "12月30日の << M << 時から次の年になるまでは << x << 時間です。" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cout'
    9 |   cout << "12月30日の << M << 時から次の年になるまでは << x << 時間です。" << endl;
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int M;
  cin >> M;
 
  int x = 24 + M
  cout << "12月30日の M 時から次の年になるまではx時間です。" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cout'
    9 |   cout << "12月30日の M 時から次の年になるまではx時間です。" << endl;
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc:9:51: error: extended character 。 is not valid in an identifier
    9 |   cout << 12月30日の M 時から次の年になるまでは x 時間です。 << endl;
      |                                                   ^
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'cout'
    9 |   cout << 12月30日の M 時から次の年になるまでは x 時間です。 << endl;
      |   ^~~~
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 ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

Compiler output:
a.cc:3:1: error: 'usisng' does not name a type
    3 | usisng namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << (day - M) + day << 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:12:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << (day - M) + day << 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>

uisng namespace std;

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

Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << (day - M) + day << 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:12:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   cout << (day - M) + day << 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>

uisng namespace std;

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

Compiler output:
a.cc:3:1: error: 'uisng' does not name a type
    3 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |   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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << (day - M) + day << 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:10:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   cout << (day - M) + day << 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 n;
        scanf("%d",%n);
        printf("%d\n",48-n);
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected expression before '%' token
    6 |         scanf("%d",%n);
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define LOD(24) // LOD : Length of Day
int main{
  int M = 0;
  cin >> M;
  if(M<1) cout << "入力エラー(制約:1≦M,M≦23)" << endl;
  else cout << LOD * 2 - M << endl;
}

Compiler output:
a.cc:3:13: error: expected parameter name, found "24"
    3 | #define LOD(24) // LOD : Length of Day
      |             ^~
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 = 0;
      |   ^~~
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: expected unqualified-id before 'if'
    7 |   if(M<1) cout << "入力エラー(制約:1≦M,M≦23)" << endl;
      |   ^~
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else cout << LOD * 2 - M << endl;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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;
  cin >> M;
  cout << 48 - M << endl;
}

Compiler output:
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:9: 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 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:18: error: 'a' was not declared in this scope
    7 |   cout << 24+(24-a)<< endl;
      |                  ^
Language: C++

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

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 << 48 - m << end;
      |   ~~~~~~^~~~~~~~~
Language: C++

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

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


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

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

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

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

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

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


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

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

int main() {
  cin >> M;
  cout >> 24 * 2 - M;
}


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() {
  cin >> M;
  cout >> 24 * 2 - M
}


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 << 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 stdc;

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

Compiler output:
a.cc:2:18: error: 'stdc' is not a namespace-name
    2 |  using namespace stdc;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '=' token
    5 |   int = M ;
      |       ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   cout << 48 - M == x << endl;
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:16: error: 'M' was not declared in this scope
    6 |   cout << 48 - M == x << endl;
      |                ^
a.cc:6:21: error: 'x' was not declared in this scope
    6 |   cout << 48 - M == x << endl;
      |                     ^
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   cout << 48 - M == 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)
      |     ^~~~
a.cc:6:31: error: expected '}' at end of input
    6 |   cout << 48 - M == x << endl;
      |                               ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;

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


Compiler output:
Main.java:7: error: no suitable method found for printf(int)
    System.out.printf(48-m);
              ^
    method PrintStream.printf(String,Object...) is not applicable
      (argument mismatch; int cannot be converted to String)
    method PrintStream.printf(Locale,String,Object...) is not applicable
      (argument mismatch; int cannot be converted to Locale)
1 error
Language: C++

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

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

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

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'int'
    6 |     int our = 24
      |     ^~~
a.cc:9:20: error: 'M' was not declared in this scope
    9 |     cout << hour - M << endl;
      |                    ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'our'
    6 |     our = 24
      |     ^~~
a.cc:9:20: error: 'M' was not declared in this scope
    9 |     cout << hour - M << endl;
      |                    ^
Language: C++

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

main{
int M;
  cin >> M;
  cout << 48-M <<endl;
  
  
  
  
  
  
  
  
]

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #including; did you mean #include?
    1 | #including<bits/stdc.h>
      |  ^~~~~~~~~
      |  include
a.cc:4:1: error: 'main' does not name a type
    4 | main{
      | ^~~~
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:10:24: error: expected primary-expression before '<<' token
   10 |   cout << 24 - M + 24; << endl;
      |                        ^~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int a, b;
	b = 48;
	cin >> a;
	cout << b - a << "時間" << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:8:41: error: expected '}' at end of input
    8 |         cout << b - a << "時間" << 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
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected '}' at end of input
    8 |   cout << 48 - m;
      |                  ^
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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected ';' at end of input
    8 |   cout << 48 - m
      |                 ^
      |                 ;
a.cc:8:17: error: expected '}' at end of input
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:7:17: error: expected primary-expression before ',' token
    7 |   cout << 48-M <, endl;
      |                 ^
Language: C++

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

int main(){
  int a, b;
  scanf("%d ", &m);
  printf("%d\n", 48-m);
  return 0;
}



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

#include<iostream>
#include<string>
#include<cmath>
#include<bits/stdc++.h>
using namespace std;
int main() 
{ 
int a,b;
cin>>a;
b=48-a;
cout<<b;
cout<<c;
return 0;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'c' was not declared in this scope
   12 | cout<<c;
      |       ^
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:5:10: error: expected unqualified-id before ';' token
    5 |   int a, ;
      |          ^
Language: C++

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

int main() {
  int M;
  int x=(24-M)+24
  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 a;
  cin >> a;
  cout << 24+(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:10: 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+(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;
  m = 48 -m;
  cout << "12月30 日の"m"時から次の年になるまでは何時間か" << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: unable to find string literal operator 'operator""m' with 'const char [63]', 'long unsigned int' arguments
    9 |   cout << "12月30 日の"m"時から次の年になるまでは何時間か" << endl;
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iosteram>
using namespace std;
int main() {
  int M ;
  cin >> M;
  cout << 24 + 24 - M << endl;
 return 0;
}


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

#include<iostream>
using namespace std; 
int main(){
  int M;
  cin>>M;
  cout<<24+(24-M)<<endl:
return 0;
}

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

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

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 << 48 - M ;
      |   ^~~~
Language: C++

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

int main() {
  int M;
  int a;
  
  cin >> M;
  
  a = 48-M;

  cout << a <<;
}


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

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

int main() {
  int M;
  
  cin >> M;
  
  a = 48-M;

  cout << a <<;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int A;
  int B;
  cin>>A;
  cin>>B;
  string C;
  cin>>C;
  string D;
  D="Yes";
  
  
  if(C.at(A)!='-'){
      D="No";
  }
  if(D=="Yes"){  
    for(int i=0;i<A;i++){
      char c=C.at(i);
      if(!(c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')){
        D="No";
      break;
      }
    }
  }
  if(D=="Yes"){
    for(int i=0;i<B;i++){
      char c=C.at(i+A+1);
      c
      if(!(c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')){
        D="No";
       
       	break;
      }
    }
  }
  cout<<D<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: expected ';' before 'if'
   29 |       c
      |        ^
      |        ;
   30 |       if(!(c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')){
      |       ~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected primary-expression before ';' token
    6 |  cin >> 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: 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;
  count << 48-m << endl;
}

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 << 48-m << 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:9:21: error: expected '}' at end of input
    9 |   cout << x << endl;
      |                     ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
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:17: 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 a;
  cin >> a;
  cout << "12月30日の21時から次の年になるまでは" << a << "時間です。" endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:70: error: expected ';' before 'endl'
    7 |   cout << "12月30日の21時から次の年になるまでは" << a << "時間です。" 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:15: error: expected primary-expression before ';' token
    6 |   cin >> M >> ;
      |               ^
Language: C++

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

int main() {
  int M;
  cin >> M >>;
    cout << 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,Y;
  cin >> M >> ;
  Y == 24-M;
    cout << Y << endl;
}


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

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

int main() {
  int M,Y;
  cin >> M >>;
  Y == 24-M;
    cout << Y << 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,Y;
  cin >> M >>;
  Y == 24-M;
    cout << "Y" << 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;
  cout<<24-M<<ebdl;
}

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

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

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

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

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

int main() {
  int M;
  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;
  cin << M;
  cout >> (24-M)+24 >> 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;
  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:15: error: 'endl' was not declared in this scope
    6 |   cout>>48-M>>endl;
      |               ^~~~
Language: C++

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

int main(){
  int M;

 cin >> M;

 cout << 48 - M << endl;
}

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

#include<iostream>
using namespace std;
int main (void) 
{
  cout<<"今は12月31日の何時ですか。整数で答えてください。24Ｈ表示";
  int　M=0;
  cin>>M;
    cout<<M<<"時から次の年になるまで\n"<<24+(24-M)<<"時間です。\n";
  
  return 0;
}

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   int　M=0;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'int\U00003000M' was not declared in this scope
    6 |   int　M=0;
      |   ^~~~~~
a.cc:7:8: error: 'M' was not declared in this scope
    7 |   cin>>M;
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main (void) 
{
  cout<<"今は12月31日の何時ですか。整数で答えてください。24Ｈ表示";
  int　num=0;
  cin>>num;
    cout<<num<<"時から次の年になるまで\n"<<24+(24-num)<<"時間です。\n";
  
  return 0;
}

Compiler output:
a.cc:6:3: error: extended character 　 is not valid in an identifier
    6 |   int　num=0;
      |   ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'int\U00003000num' was not declared in this scope
    6 |   int　num=0;
      |   ^~~~~~~~
a.cc:7:8: error: 'num' was not declared in this scope; did you mean 'enum'?
    7 |   cin>>num;
      |        ^~~
      |        enum
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'x' was not declared in this scope
    7 |   M = x
      |       ^
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:7:3: error: 'cin' does not name a type
    7 |   cin >> a;
      |   ^~~
a.cc:8:3: error: 'cout' does not name a type
    8 |   cout << 48-a << endl ;
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7: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 year
  cin >> year
  cout << 48 - year << endl;
}


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

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

Compiler output:
a.cc:2:1: error: 'nomdaruma' does not name a type
    2 | nomdaruma 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: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:19: 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;
  int x;
  48-M=x;
}

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

# include < cstdio >

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

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

# include < cstdio >
int M ;
int main ()
{
scanf ("% d " ,& M );
printf ("% d \ n " ,48 - M );
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected primary-expression before ';' token
    5 |   int a= ;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: C++

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

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

Compiler output:
a.cc:2:20: error: expected ';' before ':' token
    2 | using namespace std:
      |                    ^
      |                    ;
a.cc:2:20: error: expected unqualified-id before ':' token
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    7 |   cout << x=48 - a << 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:13: error: expected primary-expression before ';' token
    8 |  cin >> M >>;
      |             ^
Language: C++

#include <bits/stdc++.h>
using name space std;
int main;
int=a;
cin >> a;
cout << 36-a << 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:4: error: expected unqualified-id before '=' token
    4 | int=a;
      |    ^
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> a;
      | ^~~
a.cc:6:1: error: 'cout' does not name a type
    6 | cout << 36-a << endl;
      | ^~~~
Language: C++

#include <bits/stdc++>;
using name space std;
int main;
int=a;
cin >> a;
cout << 36-a << endl;

Compiler output:
a.cc:1:23: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++>;
      |                       ^
a.cc:1:10: fatal error: bits/stdc++: No such file or directory
    1 | #include <bits/stdc++>;
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected primary-expression before '<' token
    7 |   cout << 24 * 2 - M < < end l;
      |                        ^
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:15: error: expected primary-expression before ';' token
    6 |   cin >> a >> ;
      |               ^
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:13: error: expected ';' before 'cout'
    8 |     cin >> M
      |             ^
      |             ;
    9 |     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:8:7: error: expected initializer before 'cin'
    8 |       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:8:5: error: expected initializer before 'cin'
    8 |     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: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
    cout << 48 - M << endl;
}


    

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

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

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

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

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

int main() {
  int M;
  cin >> M;
  
  cout << "12月30日の", M ,"時から次の年になるまでは","M+23" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:62: error: invalid operands of types 'const char [5]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << "12月30日の", M ,"時から次の年になるまでは","M+23" << endl;
      |                                                       ~~~~~~~^~~~~~~
Language: C++

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

  	int M;
	// 入力
	cin　>>  M;

	// 出力
	cout << 48 -M << endl;
}

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

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

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

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