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

Compile Error

diamond.cpp: In function ‘int main()’:
diamond.cpp:6:6: error: ‘c’ was not declared in this scope
6 | if(c>1){
| ^
diamond.cpp:8:14: error: expected ‘;’ before ‘)’ token
8 | for(space){
| ^
| ;
diamond.cpp:11:4: error: expected primary-expression before ‘for’
11 | for(int c=0; c<=radius; c++){
| ^~~
diamond.cpp:10:6: error: expected ‘;’ before ‘for’
10 | }
| ^
| ;
11 | for(int c=0; c<=radius; c++){
| ~~~
diamond.cpp:11:4: error: expected primary-expression before ‘for’
11 | for(int c=0; c<=radius; c++){
| ^~~
diamond.cpp:10:6: error: expected ‘)’ before ‘for’
10 | }
| ^
| )
11 | for(int c=0; c<=radius; c++){
| ~~~
diamond.cpp:8:8: note: to match this ‘(’
8 | for(space){
| ^