Main.cc: In function ‘void dfs(int)’: Main.cc:8:12: error: ‘num’ was not declared in this scope if ( k == num ) ^~~ Main.cc:8:12: note: suggested alternative: ‘enum’ if ( k == num ) ^~~ enum Main.cc:12:12: error: ‘pl’ was not declared in this scope cout << pl [i] ; ^~ Main.cc:16:9: error: ‘isn’ was not declared in this scope if ( isn [i] ) ^~~ Main.cc:16:9: note: suggested alternative: ‘is’ if ( isn [i] ) ^~~ is Main.cc:22:3: error: ‘cnt’ was not declared in this scope cnt ++ ; ^~~ Main.cc:22:3: note: suggested alternative: ‘int’ cnt ++ ; ^~~ int Main.cc:24:25: error: ‘num’ was not declared in this scope for ( int i = 1 ; i <= num ; i ++ ) ^~~ Main.cc:24:25: note: suggested alternative: ‘enum’ for ( int i = 1 ; i <= num ; i ++ ) ^~~ enum Main.cc:26:8: error: ‘isn’ was not declared in this scope if ( isn [i] ) ^~~ Main.cc:26:8: note: suggested alternative: ‘is’ if ( isn [i] ) ^~~ is Main.cc:29:4: error: ‘pl’ was not declared in this scope pl [k] = 1 ; ^~ Main.cc:35:9: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0 ; ^ Main.cc: In function ‘int mian()’: Main.cc:39:9: error: ‘num’ was not declared in this scope cin >> num ; ^~~ Main.cc:39:9: note: suggested alternative: ‘enum’ cin >> num ; ^~~ enum Main.cc:40:14: error: too many arguments to function ‘void dfs(int)’ dfs ( 1 , 1 ) ; ^ Main.cc:6:6: note: declared here void dfs ( int k ) ^~~ Main.cc:41:10: error: ‘cnt’ was not declared in this scope cout << cnt << endl ; ^~~ Main.cc:41:10: note: suggested alternative: ‘int’ cout << cnt << endl ; ^~~ int Main.cc:42:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^