Problem timeexam
User xiaopiget
Submission Time 2024-06-23 16:54:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:6:9: error: expected primary-expression before ‘=’ token
6 | time% = 1440;
| ^
timeexam.cpp:13:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
13 | cout >>hourten >>hourone >>minuteten >>hourone
| ~~~~ ^~~~~~~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
timeexam.cpp:13:8: note: candidate: ‘operator>>(int, long long int)’ <built-in>
13 | cout >>hourten >>hourone >>minuteten >>hourone
| ~~~~~^~~~~~~~~
timeexam.cpp:13:8: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:45,
from timeexam.