Problem | diamond |
---|---|
User | donkeykong |
Submission Time | 2023-05-11 14:43:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
diamond.cpp: In function ‘int main()’:
diamond.cpp:7:15: error: ‘c’ was not declared in this scope
7 | int space=c;
| ^
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){
| ^