criyle/codenet-compile-errors huggingface dataset:
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:6:13: error: 'M' was not declared in this scope
    6 |  cout << 48-M << endl;
      |             ^
a.cc:6:23: error: expected '}' at end of input
    6 |  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 M;
    cin>>M;
    cout<<48-M<<endl;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before '<<' token
    5 |   int << M;
      |       ^~
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, x;
  cin >> M;
  48 - M = x;
  cout << x << endl;
}

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

#includde<iostream>
using namespace std;

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

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

#include<stdio.h>
int main(void){
    int A,B,S;
    int i;
    char str[];
    scanf("%d",&str);
    scanf("%d",&A);
    scanf("%d",&B);
    scanf("%d",&S);
    for(i=0; str[i]!='￥0'; i++);
    if((A==str[i])&&(str[i]+1=='-')){
        printf("Yes");
    }else{
        printf("No");
    }
}

Compiler output:
a.cc:10:22: warning: multi-character character constant [-Wmultichar]
   10 |     for(i=0; str[i]!='￥0'; i++);
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: storage size of 'str' isn't known
    5 |     char str[];
      |          ^~~
Language: C++

#include<stdio.h>
int main(void){
    int A,B,S;
    int i;
    char str[];
    scanf("%d",&str);
    scanf("%d",&A);
    scanf("%d",&B);
    scanf("%d",&S);
    for(i=0; str[i]!='￥0'; i++);
    if((A==str[i])&&(str[i]+1=="-")){
        printf("Yes");
    }else{
        printf("No");
    }
}

Compiler output:
a.cc:10:22: warning: multi-character character constant [-Wmultichar]
   10 |     for(i=0; str[i]!='￥0'; i++);
      |                      ^~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: storage size of 'str' isn't known
    5 |     char str[];
      |          ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: 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 | //#include <bits/stdc++.h>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << X << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 |     cout << X << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //#include <bits/stdc++.h>
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() {
  int hour:
  cin >> hour;
  cout << 48 - hour << endl;
}

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:16: error: 'M' was not declared in this scope
    2 |   int x = 48 - M;
      |                ^
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 << x << endl;
      |   ^~~~
a.cc:4:16: error: 'endl' was not declared in this scope
    4 |   cout << x << endl;
      |                ^~~~
Language: C++

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

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:19: error: 'M' was not declared in this scope
    2 |   int hour = 48 - M;
      |                   ^
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 << hour << endl;
      |   ^~~~
a.cc:4:19: error: 'endl' was not declared in this scope
    4 |   cout << hour << endl;
      |                   ^~~~
Language: C++

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

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

int main(){
  int hour = 24 * 365;
  cout << M + hour << endl;
}


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

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

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

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

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

int main() {
  int M
  cin >> M;
  cout << 24*2 - 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:18: error: 'M' was not declared in this scope
    7 |   cout << 24*2 - M << endl;
      |                  ^
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:6:3: error: expected initializer before 'cin'
    6 |   cin >> M;
      |   ^~~
a.cc:7:18: error: 'M' was not declared in this scope
    7 |   cout << 24*2 - M
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int M;
  cin >> M
    //Mは12月30日の時間
  cout << 24 - M + 24 << endl
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'cout'
    6 |   cin >> M
      |           ^
      |           ;
    7 |     //Mは12月30日の時間
    8 |   cout << 24 - M + 24 << endl
      |   ~~~~
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:6: error: expected ';' before 'M'
    6 |   cin M;
      |      ^~
      |      ;
Language: C++

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

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


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

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

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


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

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

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

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

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


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
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
    7 |   cout << 48-M << endl;
      |              ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
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 >> a;
      |   ^~~
      |   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 - a << 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 - a << 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<iostream>
using maespace std;


int main(){
  int M;
  cin>>M;
  int count=0;
  count = 24+24-M;
  cout << count;
  return 0;
}
  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'maespace'
    2 | using maespace std;
      |       ^~~~~~~~
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:10:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   cout << count;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main() {
  int m;//12月30日のm時(1<=m<=23)

  cin >> m;
  cout << 24 - m + 24 << endl;
}

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

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: no match for 'operator-' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
    7 |     cout << 48-a;
      |             ~~^~
      |             |  |
      |             |  std::string {aka std::__cxx11::basic_string<char>}
      |             int
In file included from /usr/include/c++/14/string:48,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:618:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__y.base() - __x.base())) std::operator-(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
  618 |     operator-(const reverse_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:618:5: note:   template argument deduction/substitution failed:
a.cc:7:16: note:   mismatched types 'const std::reverse_iterator<_Iterator>' and 'int'
    7 |     cout << 48-a;
      |                ^
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr decltype ((__x.base() - __y.base())) std::operator-(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
 1790 |     operator-(const move_iterator<_IteratorL>& __x,
      |     ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1790:5: note:   template argument deduction/substitution failed:
a.cc:7:16: note:   mismatched types 'const std::move_iterator<_IteratorL>' and 'int'
    7 |     cout << 48-a;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int m ; //12月30日の時刻
  cin >> m ;
  cout << 48-m << endl;
｝

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: '\U0000ff5d' was not declared in this scope
    8 | ｝
      | ^~
a.cc:8:3: error: expected '}' at end of input
    8 | ｝
      |   ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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


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

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

int main() {
  // ここにプログラムを追記
  int 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 hour
    cin >> hour;
    cout << 24 - hour << endl;
}

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

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

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




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

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

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

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

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

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

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

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

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

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


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

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


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

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

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


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

#include <bits/stdc++.h>

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

Compiler output:
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:23: 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<<24-M+24<<endi;
}

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'spacename'
    2 | using spacename std;
      |       ^~~~~~~~~
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 >> a;
      |   ^~~
      |   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:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << 24 + (24 - a) << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << 24 + (24 - a) << 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, day31;
  dai31 = 24;
  cin >> M;
  cout << dai31 + 24 - M;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'dai31' was not declared in this scope; did you mean 'day31'?
    6 |   dai31 = 24;
      |   ^~~~~
      |   day31
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:20: error: expected ';' before 'endl'
    7 |   cout << (24-M)+24 endl;
      |                    ^~~~~
      |                    ;
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

#include <bits/stdc++.h>

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

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

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

//12/30 M 時から新年までの時間//
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int name = M;
  cout << 48-M << endl;
}

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

//12/30 M 時から新年までの時間//
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int name　= M;
  cout << 48-M << endl;
}

Compiler output:
a.cc:6:7: error: extended character 　 is not valid in an identifier
    6 |   int name　= M;
      |       ^
a.cc: In function 'int main()':
a.cc:6:15: error: 'M' was not declared in this scope
    6 |   int name　= M;
      |               ^
Language: Java

import java.util.*;

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

Compiler output:
Main.java:4: error: invalid method declaration; return type required
  public static main(String[] args) {
                ^
1 error
Language: C++

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'M' was not declared in this scope
    5 |  cin >> M >>;
      |         ^
a.cc:5:13: error: expected primary-expression before ';' token
    5 |  cin >> M >>;
      |             ^
a.cc:6:19: error: expected primary-expression before ';' token
    6 |   cout << 48- M <<;
      |                   ^
Language: C++

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

int main() {
  int a = 24;
  cin >> M >>
  cout << 48 - M << 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 a;
  cin >> a;
  cout << 24*2-a << endl;
  return 0;
}

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

#include <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:10:30: error: expected ';' before '}' token
   10 |   cout << 24 - a + 24 << endl
      |                              ^
      |                              ;
   11 | }
      | ~
Language: C++

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

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

  

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

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

Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
      | ^~~~
main.c: In function 'main':
main.c:1:1: error: type of 'm' defaults to 'int' [-Wimplicit-int]
main.c:1:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
main.c:1:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
      |         ^~~~~
main.c:1:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:21: error: 'n' undeclared (first use in this function)
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
      |                     ^
main.c:1:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:24: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | main(m){scanf("%d",&n);printf("%d\n",48-n);}
      |                        ^~~~~~
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:24: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'useing' does not name a type
    2 | useing 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>
useing namespace std;

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

Compiler output:
a.cc:2:1: error: 'useing' does not name a type
    2 | useing 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>
using namespace std;

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


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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
    2 | using nameplace std;
      |       ^~~~~~~~~
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 /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << 24 + (24 - 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:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << 24 + (24 - M) << endl;
      |                            ^~~~
      |                            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:3: error: 'return0' was not declared in this scope
   10 |   return0;
      |   ^~~~~~~
Language: C++

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

}

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

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

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

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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: 'end1' was not declared in this scope
    7 |   cout << 24 + (24 - M) << end1;
      |                            ^~~~
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 <bits/stdc++.h>
using namespace std;
int main(){
  int m;
  con >> m;
  cout << 48-m <<endl;
}

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

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

Compiler output:
a.cc: In function 'int mine()':
a.cc:5:3: error: 'con' was not declared in this scope; did you mean 'cos'?
    5 |   con >> m;
      |   ^~~
      |   cos
a.cc:7:1: warning: no return statement in function returning non-void [-Wreturn-type]
    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:21: 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;
	cout << 24 - M endl;
}

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

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

int main() {

  int name = 21; 
  
  int next year = 24-"name";
  
  // 以下のコメント/* */を消して追記する
  cout << "next year" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before 'year'
    8 |   int next year = 24-"name";
      |            ^~~~
Language: C++

#inclde <bits/stdc++.h>
using namespace std;
 int main (){
   cin >> hour;
   cout << 48 - hour << 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:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> hour;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde <bits/stdc++.h>
a.cc:4:11: error: 'hour' was not declared in this scope
    4 |    cin >> hour;
      |           ^~~~
a.cc:5:4: error: 'cout' was not declared in this scope
    5 |    cout << 48 - hour << endl;
      |    ^~~~
a.cc:5:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:25: error: 'endl' was not declared in this scope
    5 |    cout << 48 - hour << 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++

#inclde <bits/stdc++.h>
using namespace std;
 int main (){
   cin >> hour;
   cout 48 - hour << 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:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> hour;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde <bits/stdc++.h>
a.cc:4:11: error: 'hour' was not declared in this scope
    4 |    cin >> hour;
      |           ^~~~
a.cc:5:4: error: 'cout' was not declared in this scope
    5 |    cout 48 - hour << endl;
      |    ^~~~
a.cc:5:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inclde <bits/stdc++.h>
using namespace std;
 int main (){
   cin >> hour;
   cout << "12月30日の"<< hour <<"時から次の年になるまでは"<< 48 - hour <<"時間です。"<<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:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> hour;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde <bits/stdc++.h>
a.cc:4:11: error: 'hour' was not declared in this scope
    4 |    cin >> hour;
      |           ^~~~
a.cc:5:4: error: 'cout' was not declared in this scope
    5 |    cout << "12月30日の"<< hour <<"時から次の年になるまでは"<< 48 - hour <<"時間です。"<<endl;
      |    ^~~~
a.cc:5:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:89: error: 'endl' was not declared in this scope
    5 |    cout << "12月30日の"<< hour <<"時から次の年になるまでは"<< 48 - hour <<"時間です。"<<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++

#inclde <bits/stdc++.h>
using namespace std;
 int main (){
   cin >> a;
   cout << "12月30日の"<< a <<"時から次の年になるまでは"<< 48 - a <<"時間です。"<<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:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> a;
      |    ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclde <bits/stdc++.h>
a.cc:4:11: error: 'a' was not declared in this scope
    4 |    cin >> a;
      |           ^
a.cc:5:4: error: 'cout' was not declared in this scope
    5 |    cout << "12月30日の"<< a <<"時から次の年になるまでは"<< 48 - a <<"時間です。"<<endl;
      |    ^~~~
a.cc:5:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:83: error: 'endl' was not declared in this scope
    5 |    cout << "12月30日の"<< a <<"時から次の年になるまでは"<< 48 - a <<"時間です。"<<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>