Problem tourist_noi
User CastyLoz17
Submission Time 2025-01-06 17:33:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tourist_noi.cpp: In function ‘int main()’:
tourist_noi.cpp:1:61: error: ‘cin’ was not declared in this scope
1 | using namespace std; int main() {long long d, x, y, c=0, a; cin>>d>>x>>y; for (int i=0; i<d; i++) { cin>>a; c += min(a*x,y);}cout<<c;}
| ^~~
tourist_noi.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std; int main() {long long d, x, y, c=0, a; cin>>d>>x>>y; for (int i=0; i<d; i++) { cin>>a; c += min(a*x,y);}cout<<c;}
tourist_noi.cpp:1:114: error: ‘min’ was not declared in this scope; did you mean ‘main’?
1 | using namespace std; int main() {long long d, x, y, c=0, a; cin>>d>>x>>y; for (int i=0; i<d; i++) { cin>>a; c += min(a*x,y);}cout<<c;}
|