Problem feedtheduck
User YSH2020
Submission Time 2025-02-23 21:16:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feedtheduck.cpp:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
1 | #incldue <bits/stdc++.h>
| ^~~~~~~
| include
feedtheduck.cpp: In function ‘int main()’:
feedtheduck.cpp:6:9: error: ‘cin’ was not declared in this scope
6 | int n; cin >> n;
| ^~~
feedtheduck.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incldue <bits/stdc++.h>
feedtheduck.cpp:15:10: error: ‘min’ was not declared in this scope; did you mean ‘main’?
15 | ans = min(ans, cur);
| ^~~
| main
feedtheduck.cpp:20:2: error: ‘cout’ was not declared in this scope
20 | cout << ans;
| ^~~~
feedtheduck.cpp:20:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?