Problem timeexam
User JhoCyber
Submission Time 2024-12-18 12:46:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

timeexam.cpp: In function ‘int32_t main()’:
timeexam.cpp:3:16: error: declaration does not declare anything [-fpermissive]
3 | #define N long long
| ^~~~
timeexam.cpp:6:9: note: in expansion of macro ‘N’
6 | int N;
| ^
timeexam.cpp:3:11: error: expected primary-expression before ‘long’
3 | #define N long long
| ^~~~
timeexam.cpp:7:12: note: in expansion of macro ‘N’
7 | cin >> N;
| ^
timeexam.cpp:8:6: error: expected unqualified-id before ‘=’ token
8 | N=N%1440;
| ^
timeexam.cpp:3:11: error: expected primary-expression before ‘long’
3 | #define N long long
| ^~~~
timeexam.cpp:9:14: note: in expansion of macro ‘N’
9 | int hour=N/60;
| ^
timeexam.cpp:3:11: error: expected primary-expression before ‘long’
3 | #define N long long
| ^~~~