fancyfence.cpp: In function 'int main()':
fancyfence.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin >> n;
| ^~~
fancyfence.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 |
fancyfence.cpp:21:5: error: 'cout' was not declared in this scope
21 | cout << (chooseh*choosew)%MOD << endl;
| ^~~~
fancyfence.cpp:21:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
fancyfence.cpp:21:38: error: 'endl' was not declared in this scope
21 | cout << (chooseh*choosew)%MOD << endl;
| ^~~~
fancyfence.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 |
fancyfence.cpp:7:12: warning: unused variable 'h' [-Wunused-variable]
7 | int n, h, w;
| ^