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

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


?>

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope
    7 |  cin >> s;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:14:2: error: 'cout' was not declared in this scope
   14 |  cout << h << ":" << m << ":" << s << endl;
      |  ^~~~
a.cc:14:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:39: error: 'endl' was not declared in this scope
   14 |  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 | 
a.cc: At global scope:
a.cc:20:1: error: expected unqualified-id before '?' token
   20 | ?>
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope
    7 |  cin >> s;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:14:2: error: 'cout' was not declared in this scope
   14 |  cout << h << ":" << m << ":" << s << endl;
      |  ^~~~
a.cc:14:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:39: error: 'endl' was not declared in this scope
   14 |  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 |
Language: C++

#include <iostream>
using namespace std;

int main(void) {
  int sum = 0;
  cin >> sum;

  int hour, minute, second
  hour = sum / 3600;
  minute = (sum - hour*3600) / 60;
  second = (sum - hour*3600 - minute*60);

  cout << hour << ":" << minute << ":" << second << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected initializer before 'hour'
    9 |   hour = sum / 3600;
      |   ^~~~
a.cc:11:3: error: 'second' was not declared in this scope
   11 |   second = (sum - hour*3600 - minute*60);
      |   ^~~~~~
Language: C++

int main()
{
    int a;
    int h , m ,s;
    scanf("%d", &a);
    
    
    printf("%d:%d:%d\n",a/3600,(a%3600/60),(a%3600%60));

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d", &a);
      |     ^~~~~
a.cc:8:5: error: 'printf' was not declared in this scope
    8 |     printf("%d:%d:%d\n",a/3600,(a%3600/60),(a%3600%60));
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <iostream>

int main() {
int seconds;
int hours;
int minutes;
cin >> seconds;
hours = seconds / 60;
minutes = seconds % 60 * 60;
seconds = seconds % 60 * 60 % 60;

cout << hours << ": " << minutes << ": " << seconds<< end1;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 | cin >> seconds;
      | ^~~
      | 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:12:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 | cout << hours << ": " << minutes << ": " << seconds<< end1;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:55: error: 'end1' was not declared in this scope
   12 | cout << hours << ": " << minutes << ": " << seconds<< end1;
      |                                                       ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
int seconds;
int hours;
int minutes;
cin >> seconds;
hours = seconds / 60;
minutes = seconds % 60 * 60;
seconds = seconds % 60 * 60 % 60;

cout << hours << ": " << minutes << ": " << seconds<< end1;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:55: error: 'end1' was not declared in this scope
   13 | cout << hours << ": " << minutes << ": " << seconds<< end1;
      |                                                       ^~~~
Language: C++

include <iostream>
using namespace std;

int main() {
double second;
double minute;
double hour;
cin >> second;
hopur = second / 3600;
int hours = hour;
minute = ((second / 3600) - hours) * 60;
int minutes = minute;
second = ((((second / 3600) - hours) * 60) - minutes) * 60);
int seconds = second;
cout<< hours<< ": " << minutes << ": " << seconds << end1;
return 0;
}





Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:1: error: 'cin' was not declared in this scope
    8 | cin >> second;
      | ^~~
a.cc:9:1: error: 'hopur' was not declared in this scope; did you mean 'hour'?
    9 | hopur = second / 3600;
      | ^~~~~
      | hour
a.cc:13:59: error: expected ';' before ')' token
   13 | second = ((((second / 3600) - hours) * 60) - minutes) * 60);
      |                                                           ^
      |                                                           ;
a.cc:15:1: error: 'cout' was not declared in this scope
   15 | cout<< hours<< ": " << minutes << ": " << seconds << end1;
      | ^~~~
a.cc:15:54: error: 'end1' was not declared in this scope
   15 | cout<< hours<< ": " << minutes << ": " << seconds << end1;
      |                                                      ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
double second;
double minute;
double hour;
cin >> second;
hopur = second / 3600;
int hours = hour;
minute = ((second / 3600) - hours) * 60;
int minutes = minute;
second = ((((second / 3600) - hours) * 60) - minutes) * 60);
int seconds = second;
cout<< hours<< ": " << minutes << ": " << seconds << end1;
return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'hopur' was not declared in this scope; did you mean 'hour'?
    9 | hopur = second / 3600;
      | ^~~~~
      | hour
a.cc:13:59: error: expected ';' before ')' token
   13 | second = ((((second / 3600) - hours) * 60) - minutes) * 60);
      |                                                           ^
      |                                                           ;
a.cc:15:54: error: 'end1' was not declared in this scope
   15 | cout<< hours<< ": " << minutes << ": " << seconds << end1;
      |                                                      ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
double second;
double minute;
double hour;
cin >> second;
hour = second / 3600;
int hours = hour;
minute = ((second / 3600) - hours) * 60;
int minutes = minute;
second = ((((second / 3600) - hours) * 60) - minutes) * 60);
int seconds = second;
cout<< hours<< ": " << minutes << ": " << seconds << end1;
return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:59: error: expected ';' before ')' token
   13 | second = ((((second / 3600) - hours) * 60) - minutes) * 60);
      |                                                           ^
      |                                                           ;
a.cc:15:54: error: 'end1' was not declared in this scope
   15 | cout<< hours<< ": " << minutes << ": " << seconds << end1;
      |                                                      ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
double second;
double minute;
double hour;
cin >> second;
hour = second / 3600;
int hours = hour;
minute = ((second / 3600) - hours) * 60;
int minutes = minute;
second = ((((second / 3600) - hours) * 60) - minutes) * 60);
int seconds = second;
cout<< hours<< ": " << minutes << ": " << seconds << endl;
return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:13:59: error: expected ';' before ')' token
   13 | second = ((((second / 3600) - hours) * 60) - minutes) * 60);
      |                                                           ^
      |                                                           ;
Language: C++

#include<iostream>
#include<string>
#include<math.h>
  
using namespace std;
  
int main(){
 double a;
cin >> a;
    cout <<int (a/3600)  <<":"<< (int (a/60))%60 <<":"<<(a%60) <<endl ;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:59: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   10 |     cout <<int (a/3600)  <<":"<< (int (a/60))%60 <<":"<<(a%60) <<endl ;
      |                                                          ~^~~
      |                                                          | |
      |                                                          | int
      |                                                          double
Language: C++

#include<iostream>
#include<string>
#include<math.h>
  
using namespace std;
  
int main(){
int a;
cin >> a;
    cout <<(a/3600)  <<":"<< (a/60))%60 <<":"<<(a%60) <<endl ;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: expected ';' before ')' token
   10 |     cout <<(a/3600)  <<":"<< (a/60))%60 <<":"<<(a%60) <<endl ;
      |                                    ^
      |                                    ;
Language: C++

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

	h = S / (60 * 60);
	m = S / 60 % 60;
	s = S % 60;
	cout << h << ":" << m << ":" << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << h << ":" << m << ":" << s << endl;
      |         ^~~~
a.cc:7:46: error: 'endl' was not declared in this scope
    7 |         cout << h << ":" << m << ":" << s << endl;
      |                                              ^~~~
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: expected ';' before 'cout'
    9 |     h = (sec - s) / 3600
      |                         ^
      |                         ;
   10 |     cout << h << ":" << m << ":" << s << endl;
      |     ~~~~
Language: C++

#include <cstdio>
int main() {
  int s;
  scanf("%d", &s);
  int h, m = s / 3600, (s % 3600) / 60;
  s %= 60;
  printf("%d:%d:%d\n", h, m, s);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:26: error: expected ')' before '%' token
    5 |   int h, m = s / 3600, (s % 3600) / 60;
      |                        ~ ^~
      |                          )
Language: C++

#include <iostream>
using namespace std;

int main()
{
   int S;
   cin >> S;
   int h = S/60/60;
   int m = (S-h*60*60) / 60;
   int s = (S-h*60*60-m*60) / 60;
   cout << h << ':' << m << ':' << s;


Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: expected '}' at end of input
   11 |    cout << h << ':' << m << ':' << s;
      |                                      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |    int S;
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |    cin >> S;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |    int h = S / 3600;
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |    int m = (S % 3600) / 60;
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |    int s = S % (3600 * 60);
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |    cout << h << ":" << m << ":" << s;
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

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


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |    int S;
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:6:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |    cin >> S;
      | ^
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:7:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |    int h = S / 3600;
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:8:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |    int m = (S % 3600) / 60;
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:9:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
   10 |    int s = S - (h*3600 + m*60);
      | ^
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:10:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
   11 |    cout << h << ":" << m << ":" << s << endl;
      | ^
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:11:1: error: extended character   is not valid in an identifier
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

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

int main(){
  int a,b,hour,seconds,minutes
  cin>>a;
  hour=a/3600;
  b=a%3600;
  minutes=b/60;
  seconds=b%60;
    cout<<hour<<":"<<minutes<<":"<<seconds<<endl;

}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin>>a;
      |   ^~~
a.cc:10:3: error: 'minutes' was not declared in this scope
   10 |   minutes=b/60;
      |   ^~~~~~~
Language: C++

#include<stdio.h>
 
int main(){
  int x, h, m, s;

  scanf("%d", &x);
h=x/3600;
m=(x-h*3600)/60
s=x-h*3600-m*60
 
  printf("%d:%d:%d\n",h,m,s);
 
  return 0;
}


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

import sys
input_data = int(input())

if __name__ == '__main__':
    hours = int(input_data / 3600)
    minutes = int((input_data - hours * 3600) / 60)
    seconds = int((input_data - hours * 3600 - minutes * 60))
    print('{0}:{1}:{2}'.format(hours, minutes, seconds))


Compiler output:
a.cc:4:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    4 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:8:11: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
    8 |     print('{0}:{1}:{2}'.format(hours, minutes, seconds))
      |           ^~~~~~~~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>

using namaspace std;

int main(){
  int s;
  sin >> s;
  cout << s/3600 << ":" << s%3600/60 << ":" << s%3600/60%60 <<endl;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namaspace'
    3 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'sin' was not declared in this scope
    7 |   sin >> s;
      |   ^~~
a.cc:8:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << s/3600 << ":" << s%3600/60 << ":" << s%3600/60%60 <<endl;
      |   ^~~~
      |   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:63: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << s/3600 << ":" << s%3600/60 << ":" << s%3600/60%60 <<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 namaspace std;

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


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namaspace'
    3 | using namaspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> 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:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   cout << s/3600 << ":" << s%3600/60 << ":" << s%3600/60%60 <<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:63: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   cout << s/3600 << ":" << s%3600/60 << ":" << s%3600/60%60 <<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 h,m,s;
 cin >> s;
 h=s/3600;
 m=s/60 % 60;
 s=s%60;
 cout << h+":"+m+":"+s << endl;
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   11 |  cout << h+":"+m+":"+s << endl;
      |          ~~~~~~~^~~~
      |               |  |
      |               |  const char [2]
      |               const char*
Language: C++

#include<iostream>
using namespace std;

int main(){
    int i,h,m,s;
    cin >> i;
    if(i <60){
        h = 0;m = 0;s = i;
    }
    else{
for(i < 60;){
    if(i >= 3600){
    i = i - 3600;
    h = h+1;
    }
    else{
        h = 0;
        i = i-60;
        m = m +1;
    }
    }
}    
    cout << h << ":" << m << ":" << s << endl;
    return 0;
}


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

#include<iostream>
using namespace std;

int main(){
    int i,h,m,s;
    cin >> i;
    if(i <60){
        h = 0;m = 0;s = i;
    }
    else{
for(i < 60){
    if(i >= 3600){
    i = i - 3600;
    h = h+1;
    }
    else{
        h = 0;
        i = i-60;
        m = m +1;
    }
    }
}    
    cout << h << ":" << m << ":" << s << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before ')' token
   11 | for(i < 60){
      |           ^
      |           ;
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:6: error: expected ';' before '}' token
   21 |     }
      |      ^
      |      ;
   22 | }
      | ~     
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
a.cc:21:6: error: expected ')' before '}' token
   21 |     }
      |      ^
      |      )
   22 | }
      | ~     
a.cc:11:4: note: to match this '('
   11 | for(i < 60){
      |    ^
a.cc:22:1: error: expected primary-expression before '}' token
   22 | }
      | ^
Language: C++

#include <iostream>

int main() {
  unsigned int seconds;
  std::cin >> seconds;
  unsigned int hours = seconds / 3600;
  seconds = seconds % 3600;
  unsigned int minutes = seonds / 60;
  seconds = seconds % 60;
  std::cout << hours << ":" << minutes << ":"<< seconds << std::endl;		
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'seonds' was not declared in this scope; did you mean 'seconds'?
    8 |   unsigned int minutes = seonds / 60;
      |                          ^~~~~~
      |                          seconds
Language: C++

#include<iostream>
using namespace std;

int main() {
int input, temp, jam, menit, detik;
cin >> input;
jam = input / 3600;
temp = input%3600;
menit = temp/60;
detik = temp%60;
cout << jam+":"+menit+":"+detik << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   11 | cout << jam+":"+menit+":"+detik << endl;
      |         ~~~~~~~~~~~~~^~~~
      |                |      |
      |                |      const char [2]
      |                const char*
Language: C++

#include<iostream>
using namespace std;

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

	cin >> S;

	s = S % 60;

	m = (S / 60;) % 60;

	h = S / 3600;

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

	return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ')' before ';' token
   11 |         m = (S / 60;) % 60;
      |             ~      ^
      |                    )
a.cc:11:21: error: expected primary-expression before ')' token
   11 |         m = (S / 60;) % 60;
      |                     ^
Language: C++

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <algorithm>

using namespace std;

int main(){

    int S;
    cin >> S;

    cout << x*y << " " << 2*x+2*y << endl;


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'x' was not declared in this scope
   16 |     cout << x*y << " " << 2*x+2*y << endl;
      |             ^
a.cc:16:15: error: 'y' was not declared in this scope
   16 |     cout << x*y << " " << 2*x+2*y << endl;
      |               ^
Language: C++

using namespace std;
int main(){
    int s;
    cin >> s;
    int a,b,c;
    a = s/3600;
    b = (s%3600)/60;
    c = s%60;
    cout << a <<":" << b << ":" << c <<endl;
    
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> s;
      |     ^~~
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:9:5: error: 'cout' was not declared in this scope
    9 |     cout << a <<":" << b << ":" << c <<endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:40: error: 'endl' was not declared in this scope
    9 |     cout << a <<":" << b << ":" << c <<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++

?php
$get_seconds = trim(fgets(STDIN));
$hours = floor($get_seconds / 3600);
$minutes = floor(($get_seconds / 60) % 60);
$seconds = $get_seconds % 60;
echo $hours. ':'. $minutes. ':'. $seconds;


Compiler output:
a.cc:1:1: error: expected unqualified-id before '?' token
    1 | ?php
      | ^
a.cc:3:1: error: '$hours' does not name a type
    3 | $hours = floor($get_seconds / 3600);
      | ^~~~~~
a.cc:4:1: error: '$minutes' does not name a type
    4 | $minutes = floor(($get_seconds / 60) % 60);
      | ^~~~~~~~
a.cc:5:1: error: '$seconds' does not name a type
    5 | $seconds = $get_seconds % 60;
      | ^~~~~~~~
a.cc:6:1: error: 'echo' does not name a type
    6 | echo $hours. ':'. $minutes. ':'. $seconds;
      | ^~~~
Language: C++

#include<stdio.h>
int main(){
    int h,m,s,t;
    scanf("%d",&t);
    h=t%3600;
    m=(t-(3600*h))%60;
    s=(t-(3600*h)-(60*m))
    printf("%d:%d:%d",h,m,s);
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ';' before 'printf'
    7 |     s=(t-(3600*h)-(60*m))
      |                          ^
      |                          ;
    8 |     printf("%d:%d:%d",h,m,s);
      |     ~~~~~~
Language: C++

	int time;
	int h = 0;
	int m = 0;
	int s = 0;

	cin >> time;

	h = time / 3600;
	m = (time - (h * 3600)) / 60;
	s = time - (h * 3600) - (m * 60);

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


Compiler output:
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> time;
      |         ^~~
a.cc:8:9: error: 'h' does not name a type
    8 |         h = time / 3600;
      |         ^
a.cc:9:9: error: 'm' does not name a type
    9 |         m = (time - (h * 3600)) / 60;
      |         ^
a.cc:10:9: error: 's' does not name a type
   10 |         s = time - (h * 3600) - (m * 60);
      |         ^
a.cc:12:9: error: 'cout' does not name a type
   12 |         cout << h << ":" << m << ":" << s;
      |         ^~~~
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
Language: C++

int main(){
	int time;
	int h = 0;
	int m = 0;
	int s = 0;

	cin >> time;

	h = time / 3600;
	m = (time - (h * 3600)) / 60;
	s = time - (h * 3600) - (m * 60);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> time;
      |         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << h << ":" << m << ":" << s;
      |         ^~~~
Language: C++

#include <stdio.h>

int main() {

	int time;
	int h = 0;
	int m = 0;
	int s = 0;

	cin >> time;

	h = time / 3600;
	m = (time - (h * 3600)) / 60;
	s = time - (h * 3600) - (m * 60);

	 << h << ":" << m << ":" << s;

return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope
   10 |         cin >> time;
      |         ^~~
a.cc:16:10: error: expected primary-expression before '<<' token
   16 |          << h << ":" << m << ":" << s;
      |          ^~
Language: C++

#include <iostream>

int main() {

	int time;
	int h = 0;
	int m = 0;
	int s = 0;

	cin >> time;

	h = time / 3600;
	m = (time - (h * 3600)) / 60;
	s = time - (h * 3600) - (m * 60);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> time;
      |         ^~~
      |         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++

int main() {

	int time;
	int h = 0;
	int m = 0;
	int s = 0;

	std::cin >> time;

	h = time / 3600;
	m = (time - (h * 3600)) / 60;
	s = time - (h * 3600) - (m * 60);

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'cin' is not a member of 'std'
    8 |         std::cin >> time;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main() {
a.cc:14:14: error: 'cout' is not a member of 'std'
   14 |         std::cout<<h<<":"<<m<<":"<<s;
      |              ^~~~
a.cc:14:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main(){
    int a,b,c,d;
    cin >> a;
    b = a/3600;
    c = (a/60)%60;
    d = x%60;
    cout<< b << ":" << c << ":" << d << endl;
}


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

include <iostream>

using namespace std;

int s,m,h;

int main()
{
    cin >> s;
    
    m = s / 60;
    h = m / 60;
    
    cout << h":" << m":" << s << endl;
    
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> s;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << h":" << m":" << s << endl;
      |     ^~~~
Language: C++

include <iostream>

using namespace std;

int s,m,h;

int main()
{
    cin >> s;
    
    m = s / 60;
    h = m / 60;
    
    cout << h << ":" << m << ":" << s << endl;
    
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> s;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << h << ":" << m << ":" << s << endl;
      |     ^~~~
a.cc:14:42: error: 'endl' was not declared in this scope
   14 |     cout << h << ":" << m << ":" << s << endl;
      |                                          ^~~~
Language: C++

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

int main(){

  int x;
  cin>>x;

  int h = x / 3600;
  int m = (x / 60) % 60;
  int s = x % 60;
  cout<<h<<";"<<m<<";"<<s<<endl;

  return 0;


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 x;
  cin>>x;

  int h = x / 3600;
  int m = (x / 60) % 60;
  int s = x % 60;
  cout<<h<<";"<<m<<";"<<s<<endl;

  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected '}' at end of input
   14 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

include <iostream>

using namespace std;

int s,m,h;

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> s;
      |     ^~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << h << ":" << m << ":" << s << endl;
      |     ^~~~
a.cc:14:42: error: 'endl' was not declared in this scope
   14 |     cout << h << ":" << m << ":" << s << endl;
      |                                          ^~~~
Language: C++

";"<<s<<endl;

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

int main(){

  int x;
  cin>>x;

  int h = x / 3600;
  int m = (x / 60) % 60;
  int s = x % 60;
  cout<<h<<";"<<m<<


Compiler output:
a.cc:4:2: error: stray '#' in program
    4 | }#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: expected unqualified-id before string constant
    1 | ";"<<s<<endl;
      | ^~~
a.cc:3:3: error: expected unqualified-id before 'return'
    3 |   return 0;
      |   ^~~~~~
a.cc:4:1: error: expected declaration before '}' token
    4 | }#include <bits/stdc++.h>
      | ^
a.cc:4:3: error: 'include' does not name a type
    4 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin>>x;
      |   ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout<<h<<";"<<m<<
      |   ^~~~
a.cc:15:20: error: expected primary-expression at end of input
   15 |   cout<<h<<";"<<m<<
      |                    ^
a.cc:15:20: error: expected '}' at end of input
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

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

int main(){

  int x;
  cin>>x;

  int h = x / 3600;
  int m = (x / 60) % 60;
  int s = x % 60;
  cout<<h":"<<m<<":"<<s<<endl;

  return 0;
}


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

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

int main(){
    
    int x;
    cin>>x;
    //
    //
    int h = x / 3600;
    int m = m (x/60) %60;
    int s = s x % 60;
    cout<<h<<" "<<m<<: :<<s<<endl;
    
    return o;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'm' cannot be used as a function
   12 |     int m = m (x/60) %60;
      |             ~~^~~~~~
a.cc:13:15: error: expected ',' or ';' before 'x'
   13 |     int s = s x % 60;
      |               ^
a.cc:14:22: error: expected primary-expression before ':' token
   14 |     cout<<h<<" "<<m<<: :<<s<<endl;
      |                      ^
a.cc:16:12: error: 'o' was not declared in this scope
   16 |     return o;
      |            ^
Language: C++

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

int main(){
    
    int x;
    cin>>x;
    //
    //
    int h = x / 3600;
    int m = m (x/60) %60;
    int s = s x % 60;
    cout<<h<<" "<<m<<: :<<s<<endl;
    
    
    return o;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 'm' cannot be used as a function
   12 |     int m = m (x/60) %60;
      |             ~~^~~~~~
a.cc:13:15: error: expected ',' or ';' before 'x'
   13 |     int s = s x % 60;
      |               ^
a.cc:14:22: error: expected primary-expression before ':' token
   14 |     cout<<h<<" "<<m<<: :<<s<<endl;
      |                      ^
a.cc:17:12: error: 'o' was not declared in this scope
   17 |     return o;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'h'
    6 |         cin>>S
      |               ^ 
      |                ;
    7 |         h=S/60;
      |         ~      
a.cc:10:18: error: expected primary-expression before ':' token
   10 |         cout<<h<<:<<m<<:<<s<<endl;
      |                  ^
Language: C++

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

int main(){
    
    int x;
    cin>>x;
    
    int h = x / 3600;
    int m = m (x/60) %60;
    int s = s x % 60;
    cout<<h<<" "<<m<<: :<<s<<endl;
    
    
    return o;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'm' cannot be used as a function
   11 |     int m = m (x/60) %60;
      |             ~~^~~~~~
a.cc:12:15: error: expected ',' or ';' before 'x'
   12 |     int s = s x % 60;
      |               ^
a.cc:13:22: error: expected primary-expression before ':' token
   13 |     cout<<h<<" "<<m<<: :<<s<<endl;
      |                      ^
a.cc:16:12: error: 'o' was not declared in this scope
   16 |     return o;
      |            ^
Language: C++

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

int main(){
    
    int x;
    cin>>x;
    
    int h = x / 3600;
    int m = m (x/60) %60;
    int s =  x % 60;
    cout<<h<<" "<<m<<: :<<s<<endl;
    
    
    return o;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'm' cannot be used as a function
   11 |     int m = m (x/60) %60;
      |             ~~^~~~~~
a.cc:13:22: error: expected primary-expression before ':' token
   13 |     cout<<h<<" "<<m<<: :<<s<<endl;
      |                      ^
a.cc:16:12: error: 'o' was not declared in this scope
   16 |     return o;
      |            ^
Language: C++

#include<iostream>
using namespace std;

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

  cin >> first;

  h = first/3600
  m = first%60
  s = first%60

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



Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'm'
   10 |   h = first/3600
      |                 ^
      |                 ;
   11 |   m = first%60
      |   ~              
a.cc:14:45: error: expected '}' at end of input
   14 |   cout << h << ":" << m << ":" << s << endl;
      |                                             ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main(){
    
    int x;
    cin>>x;
    
    int h = x / 3600;
    int m = m (x/60) %60;
    int s =  x % 60;
    cout<<h<<":"<<m<<":"<<s<<endl;
    
    
    return o;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'm' cannot be used as a function
   11 |     int m = m (x/60) %60;
      |             ~~^~~~~~
a.cc:16:12: error: 'o' was not declared in this scope
   16 |     return o;
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected ';' before 'h'
    6 |         cin>>S
      |               ^ 
      |                ;
    7 |         h=S/3600;
      |         ~      
a.cc:10:18: error: expected primary-expression before ':' token
   10 |         cout<<h<<:<<m<<:<<s<<endl;
      |                  ^
Language: C++

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

int main(){
    int x;
    cin>>x;
    int h = x / 3600
    int m = (x / 3600) % 60;
    int s = x % 60;
    cout<<h<<m<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'int'
    8 |     int m = (x / 3600) % 60;
      |     ^~~
a.cc:10:14: error: 'm' was not declared in this scope
   10 |     cout<<h<<m<<s<<endl;
      |              ^
Language: C++

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

int main(){
    int x;
    cin>>x;
    
    int h = x / 3600
    int m = (x / 3600) % 60;
    int s = x % 60;
    cout<<h<<m<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected ',' or ';' before 'int'
    9 |     int m = (x / 3600) % 60;
      |     ^~~
a.cc:11:14: error: 'm' was not declared in this scope
   11 |     cout<<h<<m<<s<<endl;
      |              ^
Language: C++

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

int main(){
    
    int x;
    cin>>x;
    
    int h = x / 3600
    int m = (x / 3600) % 60;
    int s = x % 60;
    cout<<h<<m<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'int'
   10 |     int m = (x / 3600) % 60;
      |     ^~~
a.cc:12:14: error: 'm' was not declared in this scope
   12 |     cout<<h<<m<<s<<endl;
      |              ^
Language: C++

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

int main(){
    
    
    int x;
    cin>>x;
    
    int h = x / 3600
    int m = (x / 3600) % 60;
    int s = x % 60;
    cout<<h<<m<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'int'
   11 |     int m = (x / 3600) % 60;
      |     ^~~
a.cc:13:14: error: 'm' was not declared in this scope
   13 |     cout<<h<<m<<s<<endl;
      |              ^
Language: C++

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

int main(){
    
    
    int x;
    cin>>x;
    
    int h = x / 3600
    int m = (x / 3600) % 60;
    int s = x % 60;
    cout<<h<<":"<<m<<":"<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'int'
   11 |     int m = (x / 3600) % 60;
      |     ^~~
a.cc:13:19: error: 'm' was not declared in this scope
   13 |     cout<<h<<":"<<m<<":"<<s<<endl;
      |                   ^
Language: C++

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

int main(){
    
    
    int x;
    cin>>x;
    
    int h = x / 3600
    int m = (x / 60) % 60;
    int s = x % 60;
    cout<<h<<":"<<m<<":"<<s<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before 'int'
   11 |     int m = (x / 60) % 60;
      |     ^~~
a.cc:13:19: error: 'm' was not declared in this scope
   13 |     cout<<h<<":"<<m<<":"<<s<<endl;
      |                   ^
Language: C++

#include<iostream>

int main(){

   int S;

   cin>>S;

   int h = S / 3600;
   int m = S / (S / 60 ) % 60;
   int s = S / S% 60;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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<iostream>

int main(){

   int S;

   cin>>S;

   int h = S / 3600;
   int m = S / (S / 60 ) % 60;
   int s = S% 60;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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<iostream>

int main(){

   int S;

   cin>>S;

   int h = S / 3600;
   int m = (S / 60 ) % 60;
   int s = S% 60;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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<iostream>

int main(){

   int S;

   cin>>S;

   int h = S / 3600;
   int m = (S / 60 ) % 60;
   int s = S % 60;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |    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:13:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 | 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:13:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 | 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<iostram>

int main(){
    int a;
    std::cin >> a;
    if(a/3600!=0){
        int h = a / 3600;
        a -= 3600 * h;
    }
    if(a/60!=0){
        int m = a / 60;
        a -= 60 * m;
    }
    std::cout << h << ":" << m << ":" << a << '\n';
    
    return 0;
}



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