Problem stonk
User Yaoru
Submission Time 2025-10-18 13:08:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stonk.cpp: In function ‘int main()’:
stonk.cpp:14:22: error: expected initializer before numeric constant
14 | long long profit 0;
| ^
stonk.cpp:20:9: error: ‘profit’ was not declared in this scope
20 | profit+=1LL*A[i]*max_price;
| ^~~~~~
stonk.cpp:22:11: error: ‘profit’ was not declared in this scope
22 | cout<<profit<<endl;
| ^~~~~~