Problem blackmagic
User dvd
Submission Time 2025-05-04 22:53:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

blackmagic.cpp: In function ‘int main()’:
blackmagic.cpp:57:20: error: ‘INT_MAX’ was not declared in this scope
57 | int min_cost = INT_MAX;
| ^~~~~~~
blackmagic.cpp:5:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
4 | #include <iostream>
+++ |+#include <climits>
5 | using namespace std;
blackmagic.cpp: At global scope:
blackmagic.cpp:102:5: error: ‘cout’ does not name a type
102 | cout << min_cost << "\n";
| ^~~~
blackmagic.cpp:103:5: error: expected unqualified-id before ‘return’
103 | return 0;
| ^~~~~~
blackmagic.cpp:104:1: error: expected declaration before ‘}’ token
104 | }
| ^