Problem diamond
User donkeykong
Submission Time 2023-05-11 14:38:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:5:6: error: ‘row’ was not declared in this scope; did you mean ‘pow’?
5 | for(row=0; row<radius; row++){
| ^~~
| pow
diamond.cpp:6:7: error: ‘column’ was not declared in this scope
6 | for(column=0; column<=radius; column++){
| ^~~~~~
diamond.cpp:8:16: error: ‘spaces’ was not declared in this scope
8 | int spaces;spaces=column;
| ^~~~~~
diamond.cpp:9:9: error: ‘space’ was not declared in this scope; did you mean ‘std::filesystem::space’?
9 | for(space)
| ^~~~~
| std::filesystem::space
In file included from /usr/include/c++/9/filesystem:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from diamond.cpp:1:
/usr/include/c++/9/bits/fs_ops.h:289:14: note: ‘std::filesystem::space’ declared here
289 | space_info space(con