Borderou de evaluare (job #2972148)

Utilizator alexscanteieScanteie Alexandru alexscanteie Data 28 ianuarie 2023 18:34:05
Problema Bursa Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:10:21: error: 'INT_MAX' was not declared in this scope 10 | int min_price = INT_MAX, max_profit = INT_MIN; | ^~~~~~~ main.cpp:2:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'? 1 | #include <fstream> +++ |+#include <climits> 2 | using namespace std; main.cpp:14:9: error: 'max_profit' was not declared in this scope 14 | max_profit = max(max_profit, price - min_price); | ^~~~~~~~~~ main.cpp:17:13: error: 'max_profit' was not declared in this scope 17 | cout << max_profit * s << endl; | ^~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?