Problem timeexam
User JhoCyber
Submission Time 2024-12-16 21:22:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int main()’:
timeexam.cpp:9:12: error: conflicting declaration ‘std::string hour’
9 | string hour;
| ^~~~
timeexam.cpp:7:9: note: previous declaration as ‘int hour’
7 | int hour=N / 60;
| ^~~~
timeexam.cpp:10:12: error: conflicting declaration ‘std::string minutes’
10 | string minutes;
| ^~~~~~~
timeexam.cpp:8:9: note: previous declaration as ‘int minutes’
8 | int minutes= N % 60;
| ^~~~~~~
timeexam.cpp:11:22: error: conversion from ‘int’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
11 | string thing=hour+minutes;
| ~~~~^~~~~~~~