Borderou de evaluare (job #2972153)

Utilizator alexscanteieScanteie Alexandru alexscanteie Data 28 ianuarie 2023 18:37:51
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:17:13: error: 'max_profit' was not declared in this scope 17 | max_profit = max(max_profit, price - min_price); | ^~~~~~~~~~ main.cpp:26:28: error: 'price' was not declared in this scope 26 | cout << money + shares*price << endl; | ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?