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

#include<iostream>
using namespace std;
int main(){
int h,m,s;
cin >> s;
h = s　/　3600;　s %= 3600;
m = s　/　60;　s %= 60;
cout << h << ":" << m << ":" << s << endl;
return 0;
｝


Compiler output:
a.cc:6:5: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |     ^
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |         ^
a.cc:6:16: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |                ^
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |     ^
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |         ^
a.cc:7:14: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |              ^
a.cc: In function 'int main()':
a.cc:6:5: error: 's\U00003000' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |     ^~~
a.cc:6:9: error: '\U000030003600' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |         ^~~~~~
a.cc:6:16: error: '\U00003000s' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |                ^~~
a.cc:7:9: error: '\U0000300060' was not declared in this scope
    7 | m = s　/　60;　s %= 60;
      |         ^~~~
a.cc:10:1: error: '\U0000ff5d' was not declared in this scope
   10 | ｝
      | ^~
a.cc:10:3: error: expected '}' at end of input
   10 | ｝
      |   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int h,m,s;
cin >> s;
h = s　/　3600;　s %= 3600;
m = s　/　60;　s %= 60;
cout << h << ":" << m << ":" << s << endl;
return 0;
}


Compiler output:
a.cc:6:5: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |     ^
a.cc:6:9: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |         ^
a.cc:6:16: error: extended character 　 is not valid in an identifier
    6 | h = s　/　3600;　s %= 3600;
      |                ^
a.cc:7:5: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |     ^
a.cc:7:9: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |         ^
a.cc:7:14: error: extended character 　 is not valid in an identifier
    7 | m = s　/　60;　s %= 60;
      |              ^
a.cc: In function 'int main()':
a.cc:6:5: error: 's\U00003000' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |     ^~~
a.cc:6:9: error: '\U000030003600' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |         ^~~~~~
a.cc:6:16: error: '\U00003000s' was not declared in this scope
    6 | h = s　/　3600;　s %= 3600;
      |                ^~~
a.cc:7:9: error: '\U0000300060' was not declared in this scope
    7 | m = s　/　60;　s %= 60;
      |         ^~~~
Language: C++

#include(iostream)
using namespace std;

int main(){

cout << S << endl;

cout << h ; m ; s ; << endl;

return 0;

}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:6:1: error: 'cout' was not declared in this scope
    6 | cout << S << endl;
      | ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:6:9: error: 'S' was not declared in this scope
    6 | cout << S << endl;
      |         ^
a.cc:6:14: error: 'endl' was not declared in this scope
    6 | cout << S << 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)
a.cc:8:9: error: 'h' was not declared in this scope
    8 | cout << h ; m ; s ; << endl;
      |         ^
a.cc:8:13: error: 'm' was not declared in this scope
    8 | cout << h ; m ; s ; << endl;
      |             ^
a.cc:8:17: error: 's' was not declared in this scope
    8 | cout << h ; m ; s ; << endl;
      |                 ^
a.cc:8:21: error: expected primary-expression before '<<' token
    8 | cout << h ; m ; s ; << endl;
      |                     ^~
Language: C++

#include<iostram>
using namespace std;

int main()
{
	int a, h, m, s;
	cin >> a;
	h = a / 3600;
	m = (a - (3600 * h)) / 60;
	s = a - (3600 * h + 60 * m);
	cout << h << ":" << m << ":" << s << endl;
	getchar();
}



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

#include<iostream.h>
using namespace std;

int main()
{
	int a, h, m, s;
	cin >> a;
	h = a / 3600;
	m = (a - (3600 * h)) / 60;
	s = a - (3600 * h + 60 * m);
	cout << h << ":" << m << ":" << s << endl;
	getchar();
}



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

#include(iostream)
using namespace std;

int main(){

int S , h , m , s , 

h = S / 3600 
 
m = S % 3600 

m = m / 60

s = m % 60
 
return 0;

}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:8:1: error: redeclaration of 'int h'
    8 | h = S / 3600
      | ^
a.cc:6:9: note: 'int h' previously declared here
    6 | int S , h , m , s ,
      |         ^
Language: C++

#include(iostream)
using namespace std;

int main(){

int S , h , m , s , 

h = S / 3600 

m = (S - 3600 * h) / 60

s = m - 60 * m
 
return 0;

}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:8:1: error: redeclaration of 'int h'
    8 | h = S / 3600
      | ^
a.cc:6:9: note: 'int h' previously declared here
    6 | int S , h , m , s ,
      |         ^
Language: C++

#include(iostream)
using namespace std;

int main(){

int S , h , m , s , 

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( 3600 * H + 60 * m )
 
return 0;

}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:8:1: error: redeclaration of 'int h'
    8 | h = S / 3600
      | ^
a.cc:6:9: note: 'int h' previously declared here
    6 | int S , h , m , s ,
      |         ^
Language: C++

#include(iostream)
using namespace std;

int main(){

int S , h , m , s , 

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )
 
return 0;

}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:8:1: error: redeclaration of 'int h'
    8 | h = S / 3600
      | ^
a.cc:6:9: note: 'int h' previously declared here
    6 | int S , h , m , s ,
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s , 

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: redeclaration of 'int h'
    8 | h = S / 3600
      | ^
a.cc:6:9: note: 'int h' previously declared here
    6 | int S , h , m , s ,
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s ;

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected ';' before 'm'
    8 | h = S / 3600
      |             ^
      |             ;
    9 | 
   10 | m = (S - 3600 * h) / 60
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s ;

cin >> S ;

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )

cout << S
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'm'
   10 | h = S / 3600
      |             ^
      |             ;
   11 | 
   12 | m = (S - 3600 * h) / 60
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s ;

cin >> S ;

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )

cout << h , m , s
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'm'
   10 | h = S / 3600
      |             ^
      |             ;
   11 | 
   12 | m = (S - 3600 * h) / 60
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s ;

cin >> S ;

h = S / 3600 

m = (S - 3600 * h) / 60

s = S - ( ( 3600 * H ) + ( 60 * m ) )

cout << h << ": "<< m <<" : "<< s <<endl;
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'm'
   10 | h = S / 3600
      |             ^
      |             ;
   11 | 
   12 | m = (S - 3600 * h) / 60
      | ~
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s ;

cin >> S ;

h = S / 3600;

m = (S - 3600 * h) / 60;

s = S - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s <<endl;
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'H' was not declared in this scope
   14 | s = S - ( ( 3600 * H ) + ( 60 * m ) );
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int S , h , m , s;

cin >> S ;

h = S / 3600;

m = (S - 3600 * h) / 60;

s = S - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s << endl;
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'H' was not declared in this scope
   14 | s = S - ( ( 3600 * H ) + ( 60 * m ) );
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int A , h , m , s;

cin >> A ;

h = A / 3600;

m = (A - 3600 * h) / 60;

s = A - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s << endl;
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'H' was not declared in this scope
   14 | s = A - ( ( 3600 * H ) + ( 60 * m ) );
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){

int a , h , m , s;

cin >> a;

h = a / 3600;

m = (a - 3600 * h) / 60;

s = a - ( ( 3600 * H ) + ( 60 * m ) );

cout << h << ": "<< m <<" : "<< s << endl;
 
return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'H' was not declared in this scope
   14 | s = a - ( ( 3600 * H ) + ( 60 * m ) );
      |                    ^
Language: C++

#include<iostream>
using namespace std;

int main(){

	int S , h , m , s;
	cin >> S;
	h = S / 3600;
	m = S % 3600 / 60;
	s = S % 3600 % 60;

	cout << h  ":"  m  ":"  s << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected ';' before string constant
   12 |         cout << h  ":"  m  ":"  s << endl;
      |                  ^ ~~~
      |                  ;
Language: C++

#include<iostream>

int main(){
    int S, h, n, s;
    std::cin >> S;

    h = S / 3600;
    m = S / 60 - (h * 60);
    s =S - (m * 60) - (h * 3600);
    
    if(!(0 <= S <= 86400)) return 0;
    std::cout << h << ":" << m << ":" << s << std::endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'm' was not declared in this scope
    8 |     m = S / 60 - (h * 60);
      |     ^
Language: C++

#include<iostream>

int main(){
    int S, h, n, s;
    std::cin >> S;

    h = S / 3600;
    m = (int)S / 60 - (h * 60);
    s = S - (m * 60) - (h * 3600);
    
    if(!(0 <= S <= 86400)) return 0;
    std::cout << h << ":" << m << ":" << s << std::endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'm' was not declared in this scope
    8 |     m = (int)S / 60 - (h * 60);
      |     ^
Language: C++

#include<iostream>

int main(){
    int S, h, n, s;
    std::cin >> S;

    h = S / 3600;
    m = S / 60 - (h * 60);
    s = S - (m * 60) - (h * 3600);
    
    if(!(0 <= S <= 86400)) return 0;
    std::cout << h << ":" << m << ":" << s << std::endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'm' was not declared in this scope
    8 |     m = S / 60 - (h * 60);
      |     ^
Language: C++

#include<iostream>

int main(){
    int S, h, n, s;
    std::cin >> S;

    h = S / 3600;
    m = S / 60 - (h * 60);
    s = S - (m * 60) - (h * 3600);
    
    if(!(0 =< S =< 86400)) return 0;
    std::cout << h << ":" << m << ":" << s << std::endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'm' was not declared in this scope
    8 |     m = S / 60 - (h * 60);
      |     ^
a.cc:11:13: error: expected primary-expression before '<' token
   11 |     if(!(0 =< S =< 86400)) return 0;
      |             ^
a.cc:11:18: error: expected primary-expression before '<' token
   11 |     if(!(0 =< S =< 86400)) return 0;
      |                  ^
Language: C++

#include<iostream>

int main(){
    int S, h, n, s;
    std::cin >> S;

    if(!(0 <= S <= 86400)) return 0;

    h = S / 3600;
    m = S / 60 - (h * 60);
    s = S - (m * 60) - (h * 3600);
    
    std::cout << h << ":" << m << ":" << s << std::endl;
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'm' was not declared in this scope
   10 |     m = S / 60 - (h * 60);
      |     ^
Language: C++

#include <stdio.h>

int main()
{
	int is = 0;
	int h=0, m=0, s=0;

	scanf("%d", &is);

	// is = h * 60^2 + m * 60^1 + s * 60^0
	
	h = is / 3600;
	m = (is - ( h * 3600)) / 60;
	s = is mod 60;
	printf("%d:%d:%d\n", h, m, s);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected ';' before 'mod'
   14 |         s = is mod 60;
      |               ^~~~
      |               ;
Language: C++

#include <stdio.h>

int main()
{
	int is = 0;
	int h=0, m=0, s=0;

	scanf("%d", &is);
	
	h = is / 3600;
	m = (is - ( h * 3600)) / 60;
	s = is mod 60;

	printf("%d:%d:%d\n", h, m, s);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before 'mod'
   12 |         s = is mod 60;
      |               ^~~~
      |               ;
Language: C++

#include <iostream>
#include <sstream>
usin namespace std;
int main(){
    int a;
    cin >> a;
    int b = a / 3600;
    int c = (a- b * 3600) / 60;
    int d = a - b*3600 - c * 60;
    cout << b << ':' << c << ':' << d << endl;
    return 0;
}


Compiler output:
a.cc:3:1: error: 'usin' does not name a type
    3 | usin namespace std;
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << b << ':' << c << ':' << d << 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:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout << b << ':' << c << ':' << d << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int s;
  int h = 0, m = 0, s = 0;
  cin >> s;
  if(s >= 3600) {
      h = s / (60 * 60)
  }
  if(s >= 60) {
      m = s - (3600 * h)
  }
  s = (s % 60)
  cout << h << ",";
  cout << m << ",";
  cout << s << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: redeclaration of 'int s'
    6 |   int h = 0, m = 0, s = 0;
      |                     ^
a.cc:5:7: note: 'int s' previously declared here
    5 |   int s;
      |       ^
a.cc:9:24: error: expected ';' before '}' token
    9 |       h = s / (60 * 60)
      |                        ^
      |                        ;
   10 |   }
      |   ~                     
a.cc:12:25: error: expected ';' before '}' token
   12 |       m = s - (3600 * h)
      |                         ^
      |                         ;
   13 |   }
      |   ~                      
a.cc:14:15: error: expected ';' before 'cout'
   14 |   s = (s % 60)
      |               ^
      |               ;
   15 |   cout << h << ",";
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int s;
  int h = 0, m = 0, s = 0;
  cin >> s;
  h = (s >= 3600) ? s / (60 * 60) : 0;
  h = (s >= 60) ? s - (s % 3600) : 0;
  s = (s % 60)
  cout << h << ",";
  cout << m << ",";
  cout << s << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: redeclaration of 'int s'
    6 |   int h = 0, m = 0, s = 0;
      |                     ^
a.cc:5:7: note: 'int s' previously declared here
    5 |   int s;
      |       ^
a.cc:10:15: error: expected ';' before 'cout'
   10 |   s = (s % 60)
      |               ^
      |               ;
   11 |   cout << h << ",";
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int h = 0, m = 0, s = 0;
  cin >> s;
  h = (s >= 3600) ? (s / (60 * 60)) : 0;
  h = (s >= 60) ? (s - (s % 3600)) : 0;
  s = (s % 60)
  cout << h << ",";
  cout << m << ",";
  cout << s << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'cout'
    9 |   s = (s % 60)
      |               ^
      |               ;
   10 |   cout << h << ",";
      |   ~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int h = 0, m = 0, s = 0;
  cin >> s;
  h = (s >= 3600) ? (s / (60 * 60)) : 0;
  h = (s >= 60) ? (s - (s % 3600)) : 0;
  s = (s % 60)
  cout << h << "," << m << "," << s << endl;
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'cout'
    9 |   s = (s % 60)
      |               ^
      |               ;
   10 |   cout << h << "," << m << "," << s << endl;
      |   ~~~~
Language: C++

#include<iostream>
using naemspace std;
int main(){
int h,m,s;
cin >> s;
h=s/3600;s%=3600;
m=s/60;s%=60;
cout<<h<<":"<<m<<":"<<s<<endl;
return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'naemspace'
    2 | using naemspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin >> s;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 | cout<<h<<":"<<m<<":"<<s<<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:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 | cout<<h<<":"<<m<<":"<<s<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() {
  int S, M, H;
  H = S / 3600;
  M = (S / 60) % 3600;
  cout << H << ":" << M << ":" << S % 3600 % 60;



Compiler output:
a.cc: In function 'int main()':
a.cc:8:49: error: expected '}' at end of input
    8 |   cout << H << ":" << M << ":" << S % 3600 % 60;
      |                                                 ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

    cin >> S;
    
    h = S / 3600;
    m = (S - h * 3600) /60;
    s = S - (h * 3600 + m * 60);
    
    cout << h << ":" << m << ":" << s << ":" << endl;
    
    return 0;

}



Compiler output:
a.cc:4:5: error: 'cin' does not name a type
    4 |     cin >> S;
      |     ^~~
a.cc:6:5: error: 'h' does not name a type
    6 |     h = S / 3600;
      |     ^
a.cc:7:5: error: 'm' does not name a type; did you mean 'tm'?
    7 |     m = (S - h * 3600) /60;
      |     ^
      |     tm
a.cc:8:5: error: 's' does not name a type
    8 |     s = S - (h * 3600 + m * 60);
      |     ^
a.cc:10:5: error: 'cout' does not name a type
   10 |     cout << h << ":" << m << ":" << s << ":" << endl;
      |     ^~~~
a.cc:12:5: error: expected unqualified-id before 'return'
   12 |     return 0;
      |     ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  long int h,m,s,S;
  cin >> S
  S/(60*60*60) = h
  (S%(60*60*60))/(60*60) = m
  ((S%(60*60*60))%(60*60))/60 = s
  cout << s:m:h << endl;
  

return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before 'S'
    6 |   cin >> S
      |           ^
      |           ;
    7 |   S/(60*60*60) = h
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  cout << S/3600 << ' ' << (S%3600)/60<< ' ' << (s%3600)%60 <<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:50: error: 's' was not declared in this scope
    7 |   cout << S/3600 << ' ' << (S%3600)/60<< ' ' << (s%3600)%60 <<endl;
      |                                                  ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;
  cout << S/3600 << ':' << (S%3600)/60<< ':' << (s%3600)%60 <<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:50: error: 's' was not declared in this scope
    7 |   cout << S/3600 << ':' << (S%3600)/60<< ':' << (s%3600)%60 <<endl;
      |                                                  ^
Language: C++

#include<iostream>

int main() {
	int S;
	std::cin >> S;
	int h = S / 3600;
	int m = S / 60;
	int s = S;
		std::cout << h << "," << m << "," << s << std::endl;
	return 0;
}#include<iostream>

int main() {
	int S;
	std::cin >> S;
	int h = S / 3600;
	int m = (S-h*3600)/60;
	int s = S - h* 3600 - m* 60;
		std::cout << h << "," << m << "," << s << std::endl;
	return 0;
}


Compiler output:
a.cc:11:2: error: stray '#' in program
   11 | }#include<iostream>
      |  ^
a.cc:11:3: error: 'include' does not name a type
   11 | }#include<iostream>
      |   ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int s;
    cin>>s;
    cout<<s/3600<<*:*<<s%3600/60<<*:*<<s%60<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected primary-expression before ':' token
    6 |     cout<<s/3600<<*:*<<s%3600/60<<*:*<<s%60<<endl;
      |                    ^
Language: C++

#include<stdio.h>

int main(){
int S;
scanf("%d",s);
printf("%d:%d:%d\n",int(S/(24*60)),(S-S%60)%1440,S%60)


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 's' was not declared in this scope
    5 | scanf("%d",s);
      |            ^
a.cc:6:55: error: expected ';' before 'return'
    6 | printf("%d:%d:%d\n",int(S/(24*60)),(S-S%60)%1440,S%60)
      |                                                       ^
      |                                                       ;
......
    9 | return 0;
      | ~~~~~~
Language: C++

#include<stdio.h>
 
int main(){
int S;
scanf("%d",&S);
printf("%d:%d:%d\n",int(S/(24*60)),(S-S%60)%1440,S%60)
 
 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:55: error: expected ';' before 'return'
    6 | printf("%d:%d:%d\n",int(S/(24*60)),(S-S%60)%1440,S%60)
      |                                                       ^
      |                                                       ;
......
    9 | return 0;
      | ~~~~~~
Language: C++

using namespace std ;
int main (){
    int ss, s, m, h;
	cin >> ss;
	h=ss/3600 ;
	m=ss/60%60 ;
	s=ss%60 ;
	cout << h << ':' << m << ':' << s << endl ;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> ss;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std ;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << h << ':' << m << ':' << s << endl ;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:46: error: 'endl' was not declared in this scope
    8 |         cout << h << ':' << m << ':' << s << endl ;
      |                                              ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std ;
Language: C++

second = input()

second = int(second)
h = second // 3600
m = (second % 3600) // 60
s = (second % 3600) % 60
print("{0:02}:{1:02}:{2:02}".format(h,m,s))


Compiler output:
a.cc:1:1: error: 'second' does not name a type
    1 | second = input()
      | ^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main()
{
    int second;
    int h, m, s;

    cin >> second;
    h = second / 3600;
    m = (second % 3600) / 60;
    s = (second % 3600) % 60;

　　stringstream ss_h, ss_m, ss_s;
    string str_h, str_m, str_s;
    ss_h << h;
    ss_m << m;
    ss_s << s;
    str_h = ss_h.str();
    str_m = ss_m.str();
    str_s = ss_s.str();

    cout << str_h + ":" + str_m + ":" + str_s << endl;
    return 0;
}


Compiler output:
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　stringstream ss_h, ss_m, ss_s;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:1: error: '\U00003000\U00003000stringstream' was not declared in this scope
   15 | 　　stringstream ss_h, ss_m, ss_s;
      | ^~~~~~~~~~~~~~~~
a.cc:17:5: error: 'ss_h' was not declared in this scope
   17 |     ss_h << h;
      |     ^~~~
a.cc:18:5: error: 'ss_m' was not declared in this scope
   18 |     ss_m << m;
      |     ^~~~
a.cc:19:5: error: 'ss_s' was not declared in this scope
   19 |     ss_s << s;
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main()
{
    int second;
    int h, m, s;

    cin >> second;
    h = second / 3600;
    m = (second % 3600) / 60;
    s = (second % 3600) % 60;

　　stringstream ss_h, ss_m, ss_s;
    string str_h, str_m, str_s;

    ss_h << h;
    ss_m << m;
    ss_s << s;
    str_h = ss_h.str();
    str_m = ss_m.str();
    str_s = ss_s.str();

    cout << str_h + ":" + str_m + ":" + str_s << endl;
    return 0;
}


Compiler output:
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　　stringstream ss_h, ss_m, ss_s;
      | ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:15:1: error: '\U00003000\U00003000stringstream' was not declared in this scope
   15 | 　　stringstream ss_h, ss_m, ss_s;
      | ^~~~~~~~~~~~~~~~
a.cc:18:5: error: 'ss_h' was not declared in this scope
   18 |     ss_h << h;
      |     ^~~~
a.cc:19:5: error: 'ss_m' was not declared in this scope
   19 |     ss_m << m;
      |     ^~~~
a.cc:20:5: error: 'ss_s' was not declared in this scope
   20 |     ss_s << s;
      |     ^~~~
Language: C++

#include<iostream>
#include<sstream>
#include<string>
using namespace std;

int main()
{
    int second;
    int h, m, s;

    cin >> second;
    h = second / 3600;
    m = (second % 3600) / 60;
    s = (second % 3600) % 60;

　　stringstream ss_h, ss_m, ss_s;
    string str_h, str_m, str_s;

    ss_h << h;
    ss_m << m;
    ss_s << s;
    str_h = ss_h.str();
    str_m = ss_m.str();
    str_s = ss_s.str();

    cout << str_h + ":" + str_m + ":" + str_s << endl;
    return 0;
}


Compiler output:
a.cc:16:1: error: extended character 　 is not valid in an identifier
   16 | 　　stringstream ss_h, ss_m, ss_s;
      | ^
a.cc:16:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:16:1: error: '\U00003000\U00003000stringstream' was not declared in this scope
   16 | 　　stringstream ss_h, ss_m, ss_s;
      | ^~~~~~~~~~~~~~~~
a.cc:19:5: error: 'ss_h' was not declared in this scope
   19 |     ss_h << h;
      |     ^~~~
a.cc:20:5: error: 'ss_m' was not declared in this scope
   20 |     ss_m << m;
      |     ^~~~
a.cc:21:5: error: 'ss_s' was not declared in this scope
   21 |     ss_s << s;
      |     ^~~~
Language: C++

#include <iostream>

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

	int h, m, s;
	h = S / 3600;
	m = (S % 3600) / 60;
	s = (S % 3600) % 60;
	
	std::cout << h << ":" << m << ":" << s << std::endl;
	
	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 >> S;
      |         ^~~
      |         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
      |                  ^~~
Language: C++

#include<iostream>
using namespace std;
 int main()
{
    int  s,h,m,ss;
    cin >> s ;
    h = s / 3600;
    s = s % 3600;
    m = s /60;
    ss = s % 60;
    cout  << h << : << s << : << ss << endl;
    return 0;
}   
    

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: expected primary-expression before ':' token
   11 |     cout  << h << : << s << : << ss << endl;
      |                   ^
Language: Java


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
 
using namespace std;
 
int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    if(a > b){
        printf("a > b\n");
    }else if(a < b){
        printf("a < b\n");
    }else{
        printf("a == b\n");
    }
}


Compiler output:
Main.java:2: error: class, interface, enum, or record expected
1
^
Main.java:17: error: illegal character: '#'
#include <stdio.h>
^
Main.java:21: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: illegal start of expression
    scanf("%d %d",&a,&b);
                  ^
Main.java:23: error: illegal start of expression
    scanf("%d %d",&a,&b);
                     ^
5 errors
Language: Java

import java.util.Scanner;

class Main {

	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextTnt();
        if (a <b){
        System.out.println(a <b);
        }
        else if (a> b){
        System.out.println(a> b);
        }
        else{
        System.out.println(a == b);
        }
	}

}


Compiler output:
Main.java:8: error: cannot find symbol
        int b = sc.nextTnt();
                  ^
  symbol:   method nextTnt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.Scanner;

class Main {

	public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextTnt();
        if (a <b){
         System.out.println(a <b);
        }
        else if (a> b){
         System.out.println(a> b);
        }
        else{
         System.out.println(a == b);
        }
	}

}


Compiler output:
Main.java:8: error: cannot find symbol
        int b = sc.nextTnt();
                  ^
  symbol:   method nextTnt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      if (a < b){
        System.out.println("a < b");
      else if (a > b){
        System.out.println("a > b");
      else {
        System.out.println("a == b");
      }
    } catch(IOException e){
      System.err.println(e.toString);
    }
  }
}


Compiler output:
Main.java:17: error: 'else' without 'if'
      else {
      ^
Main.java:15: error: 'else' without 'if'
      else if (a > b){
      ^
Main.java:20: error: 'catch' without 'try'
    } catch(IOException e){
      ^
Main.java:7: error: 'try' without 'catch', 'finally' or resource declarations
    try{
    ^
Main.java:24: error: reached end of file while parsing
}
 ^
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      if (a < b){
        System.out.println("a < b");
      } else if (a > b){
        System.out.println("a > b");
      } else {
        System.out.println("a == b");
      }
    } catch(IOException e){
      System.err.println(e.toString);
    }
  }
}


Compiler output:
Main.java:21: error: cannot find symbol
      System.err.println(e.toString);
                          ^
  symbol:   variable toString
  location: variable e of type IOException
1 error
Language: Java

import java.util.Scanner;

public class Main {

public static void main(String[] args){
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
String output = "";
if (a-b > 0) {
 output = "a > b";
} else if(a-b<0){
output = "a < b";
} else {
output = " a == b";
}
System.out.println(output);
}


Compiler output:
Main.java:18: error: reached end of file while parsing
}
 ^
1 error
Language: Java

mport java.util.Scanner;
 
public class Main {
 
    public static void main(String[] args) {
 
 
        Scanner sc = new Scanner(System.in);
 
        int a = sc.nextInt();
        int b = sc.nextInt();
 
        String relation;
 
        if(a > b){
            relation = ">";
        }else if(a < b){
            relation = "<";
        }else{
            relation = "==";
        }
 
        System.out.printf("a %s b\n", relation);
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    	//System.out.println("数字を入力してください");
    	Scanner sc = new Scanner(System.in);
    	int a = Integer.parseInt(sc.next());
    	int b = Integer.parseInt(sc.next());

    	if(a<b){
    		System.out.println("a<b");
    	}else if (a>b) {
    		System.out.println("a>b");
		}else (a==b) {
			System.out.println("a==b");
		}
    }
}




Compiler output:
Main.java:14: error: not a statement
		}else (a==b) {
		      ^
Main.java:14: error: ';' expected
		}else (a==b) {
		            ^
2 errors
Language: Java

import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt(), int b = sc.nextInt();
if(a<b){System.out.print("a < b");}
else if(a>b){System.out.println("a > b");}
else{System.out.println("a == b");}
}
}



Compiler output:
Main.java:5: error: <identifier> expected
int a = sc.nextInt(), int b = sc.nextInt();
                     ^
1 error
Language: Java

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.useDelimiter( ); 
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a < b) {
			System.out.println("a<b");
		} else if (a > b) {
			System.out.println("a>b");
		} else {
			System.out.println("a==b");
		}
	}
}


Compiler output:
Main.java:6: error: no suitable method found for useDelimiter(no arguments)
		sc.useDelimiter( ); 
		  ^
    method Scanner.useDelimiter(Pattern) is not applicable
      (actual and formal argument lists differ in length)
    method Scanner.useDelimiter(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b){
System.out.println("a<b");
}else if{(a > b)
System.out.println("a>b");
}else{
System.out.println("a==b");
}
}



Compiler output:
Main.java:10: error: '(' expected
}else if{(a > b)
        ^
Main.java:10: error: not a statement
}else if{(a > b)
         ^
Main.java:10: error: ';' expected
}else if{(a > b)
                ^
Main.java:15: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.util.Scanner;

class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b){
System.out.println("a < b");
}else if{(a > b)
System.out.println("a > b");
}else{
System.out.println("a == b");
}
}



Compiler output:
Main.java:10: error: '(' expected
}else if{(a > b)
        ^
Main.java:10: error: not a statement
}else if{(a > b)
         ^
Main.java:10: error: ';' expected
}else if{(a > b)
                ^
Main.java:15: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

#include<stdio.h>

int main()
{
	int a, b;
	scanf("%d",&a);
	scanf("%d",&b);
	
	if(a<b)
	{
		printf("a < b");
	}
	else if(a>b)
	{
		printf("a > b");
	}
	else
	{
		printf("a == b");
	}
}


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:6: error: class, interface, enum, or record expected
	scanf("%d",&a);
	^
Main.java:7: error: class, interface, enum, or record expected
	scanf("%d",&b);
	^
Main.java:9: error: class, interface, enum, or record expected
	if(a<b)
	^
Main.java:12: error: class, interface, enum, or record expected
	}
	^
Main.java:16: error: class, interface, enum, or record expected
	}
	^
Main.java:20: error: class, interface, enum, or record expected
	}
	^
8 errors
Language: Java

import java.io.*;
import java.util.*;

class Main
{
    public static void main(String[] args)
    {
	Scanner sc = new Scanner(System.in);
	
	int a = sc.nextInt();
	int b = sc.nextInt();


if(a==b){
System.out.println("a == b");
}else if(a < b){
System.out.println("a < b");
}else{
System.out.println("a > b");
    }
}


Compiler output:
Main.java:21: error: reached end of file while parsing
}
 ^
1 error
Language: Java

package test;

public class SmallorLarge {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String inputStr = sc.nextLine();

		String[] inputStrArray = inputStr.split(" ");
		int[] inputIntArray = new int[inputStrArray.length];

		for (int index = 0; index < inputIntArray.length; index++) {
			inputIntArray[index] = Integer.parseInt(inputStrArray[index]);
		}

		String inequality = "";
		if (inputIntArray[0] < inputIntArray[1]) {
			inequality = " < ";
		}
		if (inputIntArray[0] > inputIntArray[1]) {
			inequality = " > ";
		}
		if (inputIntArray[0] == inputIntArray[1]) {
			inequality = " == ";
		}
		System.out.println(inputIntArray[0] + inequality + inputIntArray[1]);

	}

}



Compiler output:
Main.java:3: error: class SmallorLarge is public, should be declared in a file named SmallorLarge.java
public class SmallorLarge {
       ^
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class SmallorLarge
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class SmallorLarge
3 errors
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// 標準入力からデータを読み込む準備
Scanner sc = new Scanner(System.in);
// 2つの文字の固まりを整数値と想定して読み込む
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b) {
System.out.println("a < b");
} else if(a > b){
System.out.println("a > b");
} else printf("a = b");
}
}


Compiler output:
Main.java:13: error: cannot find symbol
} else printf("a = b");
       ^
  symbol:   method printf(String)
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if (a < b) {
System.out.println("a < b");
} else if(a > b){
System.out.println("a > b");
} else println("a = b");
}
}


Compiler output:
Main.java:11: error: cannot find symbol
} else println("a = b");
       ^
  symbol:   method println(String)
  location: class Main
1 error
Language: Java


import java.util.Scanner;
public class SLE {
    public static void main(String[] args){
Scanner scan = new Scanner (System.in);

try{
int a=scan.nextInt();
int b=scan.nextInt();

if(a==b) System.out.println("a==b");
if(a>b) System.out.println("a>b");
if(a<b) System.out.println("a<b");

scan.close();
}catch(NumberFormatException e){
    System.out.println(e);
}




    }
    
}


Compiler output:
Main.java:3: error: class SLE is public, should be declared in a file named SLE.java
public class SLE {
       ^
1 error
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int a= S.nextInt();
      int b= S.nextInt();
      if(a<b){
      System.out.printf("%d<%d", a, b);
      }
      else if (a>b){
      System.out.printf("%d>%d", a, b);
      }
      else {
      System.out.printf("%d==%d", a, b);
      }
 }


Compiler output:
Main.java:18: error: reached end of file while parsing
 }
  ^
1 error
Language: Java

import java.util.Scanner;

public class Main{ 
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
            Int a = scanner.nextInt();
            Int b = scanner.nextInt();
            if(a>b){
                System.out.println("a>b");
            }else if(a<b){
                System.out.println("a<b");
            }else if(a==b){
                System.out.println("a==b");
            }
        }
}


Compiler output:
Main.java:6: error: cannot find symbol
            Int a = scanner.nextInt();
            ^
  symbol:   class Int
  location: class Main
Main.java:7: error: cannot find symbol
            Int b = scanner.nextInt();
            ^
  symbol:   class Int
  location: class Main
2 errors
Language: Java

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
       if(a==b) {
    	   System.out.println("a == b");
       }else if(a > b) {
    	   System.out.println("a > b");
       }else {
    	   System.out.println("a < b");
       }



    }

}


Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Test01 {

	public static void main(String[] args) {
	
		int a = new java.util.Scanner(System.in).nextInt();
		int b = new java.util.Scanner(System.in).nextInt();

		if(a < b) {
			System.out.println("a < b");
		}else if(a > b) {
			System.out.println("a > b");
		}else if(a == b) {
			System.out.println("a == b");
		}


	}

}



Compiler output:
Main.java:1: error: class Test01 is public, should be declared in a file named Test01.java
public class Test01 {
       ^
1 error
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){

  Scanner scan = new Scanner(System.in);
 
  int a = scan.next;
  int b = scan.next;

  if(a<b) System.out.println("a < b");
  else if(a>b) System.out.println("a > b");
  else System.out.println("a == b");
   }
}

Compiler output:
Main.java:7: error: cannot find symbol
  int a = scan.next;
              ^
  symbol:   variable next
  location: variable scan of type Scanner
Main.java:8: error: cannot find symbol
  int b = scan.next;
              ^
  symbol:   variable next
  location: variable scan of type Scanner
2 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
 
  Scanner scan = new Scanner(System.in);
  
  Integer a = scan.next;
  Integer b = scan.next;
 
  if(a<b) System.out.println("a < b");
  else if(a>b) System.out.println("a > b");
  else System.out.println("a == b");
   }
}

Compiler output:
Main.java:7: error: cannot find symbol
  Integer a = scan.next;
                  ^
  symbol:   variable next
  location: variable scan of type Scanner
Main.java:8: error: cannot find symbol
  Integer b = scan.next;
                  ^
  symbol:   variable next
  location: variable scan of type Scanner
2 errors
Language: Java


import java.io.*;
import java.util.*;


public class aoj{ 

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		
	    int a= scan.nextInt();
	    int b=scan.nextInt();
	    numbers num = new numbers(a,b);
	    num.comp();
		
	}
}

class numbers{
	int a;
	int b;
	public numbers(int x, int y){
		a=x;
		b=y;
	}
	public void comp(){
		if(a>b)
		System.out.println("a>b");
		else if(a<b)
		System.out.println("a<b");
		else
		System.out.println("a==b");
	}
	
}

Compiler output:
Main.java:6: error: class aoj is public, should be declared in a file named aoj.java
public class aoj{ 
       ^
1 error
Language: Java


import java.io.*;
import java.util.*;


public class Main{ 

	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		
	    int a= scan.nextInt();
	    int b=scan.nextInt();
	    numbers num = new numbers(a,b);
	    num.comp();
		
	}
}

class numbers{
	int a;
	int b;
	public numbers(int x, int y){
		a=x;
		b=y;
	}
	public void comp(){
		if(a>b)
		System.out.println("a > b");
		else if(a<b)
		System.out.println("a < b");
		else
		System.out.printfln("a == b");
	}
	
}

Compiler output:
Main.java:32: error: cannot find symbol
		System.out.printfln("a == b");
		          ^
  symbol:   method printfln(String)
  location: variable out of type PrintStream
1 error
Language: Java

public class Main {
 
    public static void main(String[] args) throws IOException {
             
       Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      
      if(a<b){
    	  System.out.println("a<b");
      }
      
      if(a>b){
    	  System.out.println("a>b");
      }
      if(a==b){
          System.out.println("a==b");
    
      } 
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
       ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
       Scanner sc = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
3 errors