criyle/codenet-compile-errors huggingface dataset:
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:2:16: error: expected identifier before '.' token
    2 | using namespace.std;
      |                ^
a.cc:2:16: error: expected ';' before '.' token
    2 | using namespace.std;
      |                ^
      |                ;
a.cc:2:16: error: expected unqualified-id before '.' token
a.cc: In function 'int main()':
a.cc:4:4: error: 'cin' was not declared in this scope
    4 |    cin >> a;
      |    ^~~
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:83: error: 'endl' was not declared in this scope
    5 |    cout << "12月30日の"<< a <<"時から次の年になるまでは"<< 48 - a <<"時間です。"<<endl;
      |                                                                                   ^~~~
Language: C++

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce 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 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;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

#include <iostream>
#include <string>
#include <cmath>
#include <vector>
typedef unsigned int UINT;
using namespace std;


int main(void) {
    int X;
    cin >> X;
    const day = 24;
    int ans = day + day - X;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'day' does not name a type
   12 |     const day = 24;
      |           ^~~
a.cc:13:15: error: 'day' was not declared in this scope
   13 |     int ans = day + day - X;
      |               ^~~
Language: C++

#include <iostream>
using namespace std;
int main{
  int m;
  cin >> m;
  cout << 24 - 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 << 24 - m << endl;
      |   ^~~~
a.cc:7:1: error: expected declaration before '}' token
    7 | }
      | ^
Language: C++

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

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

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

#include<iostream>
#include<climits>
#include<math.h>
#include<vector>
#include<algorithm>
#include<cstdio>
#include<stdio.h>
#include <string>
#include <complex>
#include <functional>
#include <map>
using namespace std;
using ll = long long;
//typedef pair<string,string> P;
//double dat[100][100];
//int dp[6][1010];//動的計画法
//int prime[10000001];
//char str[1010][1010];
//vector<pair<int,int> > pc[100001];
//int ABS(int a){return max(a,-a);}
int main(){
	int m,ans;
	cin>>n;
	ans=48-m;
	cout<<ans<<endl;
	return 0;
}

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

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

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



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

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

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

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

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

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: redeclaration of 'int time'
    7 |   int time = 48-left;
      |       ^~~~
a.cc:5:7: note: 'int time' previously declared here
    5 |   int time,left;
      |       ^~~~
Language: C++

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


Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng 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 >> left;
      |   ^~~
      |   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:7: error: redeclaration of 'int time'
    7 |   int time = 48-left;
      |       ^~~~
a.cc:5:7: note: 'int time' previously declared here
    5 |   int time,left;
      |       ^~~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << time << 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:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << time << 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 time,left;
  cin >> left;
  int time = 48-left;
  cout << time << 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>
uisng namespace std
  int main()
{
  int time,left;
  cin >> left;
  int time = 48-left;
  cout << time << 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 << 48 - M << enfl;
  
  
}

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

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

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


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

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

int main(){
 int a;
  cin >> a;
  cout << 24+(24-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++

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

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


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

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

}

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

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

}

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

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

}

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

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

}

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

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

}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '}' token
    8 | }
      | ^
Language: C++

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

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

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int M;
  printf("12/30の何時ですか");scanf("%d",&M);
  if(scanf("%d",&M)==0){
    printf("%d = false",M);
    exit(1);
  }
  if(M>=1&&M<=23){
    printf("%d",48-M);
  }else{
    exit(1);
  }
  return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main(){
  int M;
  printf("12/30の何時ですか");scanf("%d",&M);
  if(scanf("%d",&M)==0){
    printf("%d = false",M);
    exit(1);
  }
  if(M>=1&&M<=23){
    printf("%d",48-M);
  }
}

Compiler output:
main.c:19:5: error: redefinition of 'main'
   19 | int main(){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int M;
  printf("12/30の何時ですか");scanf("%d",&M);
  if(scanf("%d",M)<1)){
    printf("false");
    exit(1);
  }
  if(M>=1&&M<=23){
    printf("%d",48-M);
  }else{
    exit(1);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected statement before ')' token
    6 |   if(scanf("%d",M)<1)){
      |                      ^
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int M;
  printf("12/30の何時ですか");scanf("%d",&M);
  if((scanf("%d",M))<1)){
    printf("false");
    exit(1);
  }
  if(M>=1&&M<=23){
    printf("%d",48-M);
  }else{
    exit(1);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: expected statement before ')' token
    6 |   if((scanf("%d",M))<1)){
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
	int m,ans;
	cin>>m;
	ans=24-m+24;
	out<<ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'out' was not declared in this scope
    7 |         out<<ans;
      |         ^~~
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
  cin >> m;
  cout << 24-m+24 << endl;
}


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

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

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

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

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

int main() {
  int M, X
  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;
      |   ^~~
Language: C++

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

int main() {
  int M, X
  cin >> M;
  X = 48 - 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:3: error: 'X' was not declared in this scope
    7 |   X = 48 - M;
      |   ^
Language: C++

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

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inslude; did you mean #include?
    1 | #inslude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> M;
      |   ^~~
a.cc:7:3: error: 'X' was not declared in this scope
    7 |   X = 48 - M;
      |   ^
a.cc:8:3: error: 'cout' was not declared in this scope
    8 |   cout << 48 - 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 | #inslude <bits/stdc++.h>
a.cc:8:21: error: 'endl' was not declared in this scope
    8 |   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 | #inslude <bits/stdc++.h>
Language: C++

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

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

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

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

int main() {
  int M, X;
  cin >> M;
  X = 24 - M
  cout << "12月30にちの” << M <<　”時から次の年になるまでは” <<　24 - X <<　”です” << endl;
}
  

Compiler output:
a.cc:8:11: warning: missing terminating " character
    8 |   cout << "12月30にちの” << M <<　”時から次の年になるまでは” <<　24 - X <<　”です” << endl;
      |           ^
a.cc:8:11: error: missing terminating " character
    8 |   cout << "12月30にちの” << M <<　”時から次の年になるまでは” <<　24 - X <<　”です” << endl;
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'cout'
    7 |   X = 24 - M
      |             ^
      |             ;
    8 |   cout << "12月30にちの” << M <<　”時から次の年になるまでは” <<　24 - X <<　”です” << endl;
      |   ~~~~
Language: C++

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

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

Compiler output:
a.cc:9:90: error: extended character 　 is not valid in an identifier
    9 |   cout << "12月30日の”　<< M << ”時から次の年になるまでは”　<< X << ”時間です。" << endl;　
      |                                                                                          ^
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before 'cout'
    8 |   X = 24 - M
      |             ^
      |             ;
    9 |   cout << "12月30日の”　<< M << ”時から次の年になるまでは”　<< X << ”時間です。" << endl;　
      |   ~~~~       
a.cc:9:90: error: '\U00003000' was not declared in this scope
    9 |   cout << "12月30日の”　<< M << ”時から次の年になるまでは”　<< X << ”時間です。" << endl;　
      |                                                                                          ^~
Language: C++

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

int main(){
  int m;
  cin >> m;
  echo 48 - m;
}

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

#include <bits/stdc++.h>
int N;
struct station {
  int num;
  int C;
  int S;
  int F;
};
void check(struct station * sta);
int main(){
  std::cin >> N;
  struct station sta[N];
  for(int i = 1;i<=N;i++){
    if(i == N){sta[i].num = 0;break;}
    std::cin>>sta[i].C>>sta[i].S>>sta[i].F;
    sta[i].num = i;
  }
  for(int i = 1;i<=N;i++){
     check(sta);
  }
  
 return 0; 
}

void check(struct station * sta){
  if(sta[num].num == 0){std::cout<<0<<'\n';return;}
  int all = 0;
  for(int i = num;num<N;i++){
   if(i == num){
     all+=(sta[i].C + sta[i].S);
   }else{
     if(all < sta[i].S)all+=sta[i].S-all+sta[i].C;
     while((all - sta[i].S)%sta[i].F==0){all++;}
     all+=sta[i].C;
   }
  }
  std::cout<<all<<'\n';
}

Compiler output:
a.cc: In function 'void check(station*)':
a.cc:26:10: error: 'num' was not declared in this scope; did you mean 'enum'?
   26 |   if(sta[num].num == 0){std::cout<<0<<'\n';return;}
      |          ^~~
      |          enum
a.cc:28:15: error: 'num' was not declared in this scope; did you mean 'enum'?
   28 |   for(int i = num;num<N;i++){
      |               ^~~
      |               enum
Language: C++

#include <bits/stdc++.h>
int N;
struct station {
  int num;
  int C;
  int S;
  int F;
};
void check(int num);
int main(){
  std::cin >> N;
  struct station sta[N];
  for(int i = 1;i<=N;i++){
    if(i == N){sta[i].num = 0;break;}
    std::cin>>sta[i].C>>sta[i].S>>sta[i].F;
    sta[i].num = i;
  }
  for(int i = 1;i<=N;i++){
     check(i);
  }
  
 return 0; 
}

void check(int num){
  if(sta[num].num == 0){std::cout<<0<<'\n';return;}
  int all = 0;
  for(int i = num;num<N;i++){
   if(i == num){
     all+=(sta[i].C + sta[i].S);
   }else{
     if(all < sta[i].S)all+=sta[i].S-all+sta[i].C;
     while((all - sta[i].S)%sta[i].F==0){all++;}
     all+=sta[i].C;
   }
  }
  std::cout<<all<<'\n';
}

Compiler output:
a.cc: In function 'void check(int)':
a.cc:26:6: error: 'sta' was not declared in this scope; did you mean 'std'?
   26 |   if(sta[num].num == 0){std::cout<<0<<'\n';return;}
      |      ^~~
      |      std
a.cc:30:12: error: 'sta' was not declared in this scope; did you mean 'std'?
   30 |      all+=(sta[i].C + sta[i].S);
      |            ^~~
      |            std
a.cc:32:15: error: 'sta' was not declared in this scope; did you mean 'std'?
   32 |      if(all < sta[i].S)all+=sta[i].S-all+sta[i].C;
      |               ^~~
      |               std
a.cc:33:19: error: 'sta' was not declared in this scope; did you mean 'std'?
   33 |      while((all - sta[i].S)%sta[i].F==0){all++;}
      |                   ^~~
      |                   std
a.cc:34:11: error: 'sta' was not declared in this scope; did you mean 'std'?
   34 |      all+=sta[i].C;
      |           ^~~
      |           std
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:6:11: error: expected ';' before 'x'
    6 |   cin >> M
      |           ^
      |           ;
    7 |   x=48-M
      |   ~
Language: C++

#include <isotream>

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

  int until = 24 - M + 24;
  std::cout << until << std::endl;

  return 0;
}


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected expression before '%' token
    5 |   scanf(%d",&a);
      |         ^
main.c:5:11: warning: missing terminating " character
    5 |   scanf(%d",&a);
      |           ^
main.c:5:11: error: missing terminating " character
    5 |   scanf(%d",&a);
      |           ^~~~~~
main.c:7:12: error: expected ';' before '}' token
    7 |   return 0;
      |            ^
      |            ;
    8 | }
      | ~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: invalid operands of types 'int' and 'int()' to binary 'operator-'
    7 |     cout << 48 - main << endl;
      |             ~~ ^ ~~~~
      |             |    |
      |             int  int()
Language: C++

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

int main() {

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin >> time;
      |     ^~~
a.cc:7:21: error: invalid operands of types 'int' and 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} to binary 'operator-'
    7 |     cout << day_time-time << endl;
      |             ~~~~~~~~^~~~~
      |             |        |
      |             int      time_t(time_t*) noexcept {aka long int(long int*) noexcept}
Language: C++

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

int main() {
  int day_time=47
    cin >> time;
    cout << day_time-time << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin >> time;
      |     ^~~
a.cc:7:21: error: invalid operands of types 'int' and 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} to binary 'operator-'
    7 |     cout << day_time-time << endl;
      |             ~~~~~~~~^~~~~
      |             |        |
      |             int      time_t(time_t*) noexcept {aka long int(long int*) noexcept}
Language: C++

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

int main() {
  int day_time=24
    cin >> time;
    cout << 2*day_time-time << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin >> time;
      |     ^~~
a.cc:7:23: error: invalid operands of types 'int' and 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} to binary 'operator-'
    7 |     cout << 2*day_time-time << endl;
      |             ~~~~~~~~~~^~~~~
      |              |         |
      |              int       time_t(time_t*) noexcept {aka long int(long int*) noexcept}
Language: C++

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

int main() {
  int day_time=24
    cin >> time
    cout << 2*day_time-time << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'cin'
    6 |     cin >> time
      |     ^~~
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:9: error: expected primary-expression before ';' token
    6 | cin>>M>>;
      |         ^
a.cc:7:13: error: expected primary-expression before ';' token
    7 | cout<<48-M<<;
      |             ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before ';' token
    5 |   cin>>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:5:8: error: 'm' was not declared in this scope
    5 |   cin>>m>>;
      |        ^
a.cc:5:11: error: expected primary-expression before ';' token
    5 |   cin>>m>>;
      |           ^
Language: C++

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

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

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

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

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

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


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

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


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

#include <bit/stdc++>
using namespace std;
int main(void){
    int n;
    cin >> n;
    
    cout << 24 + (24 - n) << endl;
}


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

#include <bit/stdc++>
using namespace std;
int main(void){
    int n;
    cin >> n >> ;
    
    cout << 24 + (24 - n) << endl;
}


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

#include <iostream>
using namespace std;
int main(void){
    int n;
    cin >> n >>;
    
    cout << 24 + (24 - n) << endl;
}


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

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

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

Compiler output:
a.cc:2:8: error: expected nested-name-specifier before 'namespase'
    2 |  using namespase 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 <<
      |   ^~~~
      |   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:5: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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 m;
	scnaf("%d",&m);
	printf("%d\n",48-m);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    5 |         scnaf("%d",&m);
      |         ^~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
    2 | #include(string)
      |         ^
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 | #include(iostream)
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: 'endl' was not declared in this scope
    7 |   cout << 48 - M << endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include(iostream)
Language: C++

#include<stdio.h>
int main(void)
{
	int m,x,y;
	scanf("%d",&m);
	x=24-m;
	y=24+x;
	pritntf("%d\n",y);
	return 0;
}


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

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

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

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

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

int main (){
  int M;
cin>>M;
if(M<=24){
  count << 48 - M << endl;
}
}

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

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

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

#include <bits/stdc++.h>
int M ;
int main ()
  int x;
cin>>M;
if(M<=24){
  count << 48 - M << endl;
}
}

Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int x;
      |   ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>M;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(M<=24){
      | ^~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

#include <iostream>
int M ;
int main ()
  int x;
cin>>M;
if(M<=24){
  count << 48 - M << endl;
}
}

Compiler output:
a.cc:4:3: error: expected initializer before 'int'
    4 |   int x;
      |   ^~~
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>M;
      | ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(M<=24){
      | ^~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>a;
      |         ^~~
      |         std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<48-a;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

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

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



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

#include<iostream>

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

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 >> a;
      |   ^~~
      |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   cout << b;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase 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>>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:15: 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<bits/stdc++.h>
using namespase std;

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

}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase 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>>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<<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:7:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   cout<<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: Java

#include <stdio.h>
#include <string.h>

void main(){
	int N;
	scanf("%d",&N);
	printf("%d",48-N);	
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <string.h>
^
Main.java:6: error: class, interface, enum, or record expected
	scanf("%d",&N);
	^
Main.java:7: error: class, interface, enum, or record expected
	printf("%d",48-N);	
	^
Main.java:8: error: class, interface, enum, or record expected
}
^
6 errors
Language: C++

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

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


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

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

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

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

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

int main(){

  cin m;
  
  cout << (24-m) + 24 << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'm'
    6 |   cin m;
      |      ^~
      |      ;
a.cc:8:15: error: 'm' was not declared in this scope; did you mean 'tm'?
    8 |   cout << (24-m) + 24 << endl;
      |               ^
      |               tm
Language: C++

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

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

  cout<< 24+24-N <<endl;
}


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

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

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

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

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

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

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

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

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

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