Problem duckbuttons
User yoshiokalili
Submission Time 2026-02-05 21:40:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckbuttons.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include “bits/stdc++.h”
| ^
duckbuttons.cpp: In function ‘int main()’:
duckbuttons.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> num >> ducks;
| ^~~
duckbuttons.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include “bits/stdc++.h”
duckbuttons.cpp:15:14: error: ‘n’ was not declared in this scope
15 | for (ll x = n-1; x > -1; x--){
| ^
duckbuttons.cpp:16:18: error: ‘ducksm’ was not declared in this scope; did you mean ‘ducks’?
16 | if (board[x] > ducksm){
| ^~~~~~
| ducks
duckbuttons.cpp:23:2: error: ‘cout’ was not declared in this scope
23 | cout << ans;
| ^~~~
duckbuttons.cpp:23:2: