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

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:7:7: error: ‘column’ was not declared in this scope
7 | if(column>1)
| ^~~~~~
diamond.cpp:8:16: error: ‘spaces’ was not declared in this scope
8 | int spaces;spaces=column;
| ^~~~~~
diamond.cpp:8:23: error: ‘column’ 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(const path& __p, error_code& __ec) noexcept;