title: How can I display the number minutes, hours, or days from the amount of seconds that I have in C++?
body: <pre><code>//courseID:CIS165-006HY
  //name: Omar Barrera
  //Prof. Wang
  //Assignment#4
  //Due by 03/07/2020
  
  #include &lt;iomanip&gt;
  #include &lt;iostream&gt;
  using namespace std;
  
  int main() {
  int 86400 seconds = 1 day,
  int 3600 seconds = 1 hour,
  int 60 seconds = 1 minute,
  int number;
  
  cout &lt;&lt; "Enter amount of Seconds" &lt;&lt; endl;
  cin &gt;&gt;number&gt;&gt;endl;
  
  
  
  if (number &gt;= 86400)
      cout&lt;&lt;number&lt;&lt;"day(s)"&lt;&lt;endl;
  else if (86400 &gt;= number &gt;= 3600)
      cout&lt;&lt;number&lt;&lt;"hour(s)"&lt;&lt;endl;
  else if (3600 &gt;= number &gt;= 60)
      cout&lt;&lt;number&lt;&lt;"minute(s)"&lt;&lt;endl;
  else (number &lt; 60)
      cout&lt;&lt;number&lt;&lt;"seconds"&lt;&lt;endl:
  
  return 0;
  }
  </code></pre>
  
  <p>The error that popped up in my compiler was</p>
  
  <blockquote>
  <pre><code>main.cpp: In function ‘int main()’:
  main.cpp:12:5: error: expected unqualified-id before numeric constant
   int 86,400 seconds = 1 day,
       ^~
  main.cpp:18:7: error: ‘number’ was not declared in this scope
   cin &gt;&gt;number&gt;&gt;endl;
  </code></pre>
  </blockquote>