Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cpp: In function ‘int main()’:
- main.cpp:77:22: error: cannot convert ‘main()::Dir_Data*’ to ‘Dir_Data*’
- 77 | chose_Dir(Dir);
- | ^~~
- | |
- | main()::Dir_Data*
- In file included from main.cpp:18:
- Function.hh:20:37: note: initializing argument 1 of ‘void chose_Dir(Dir_Data*)’
- 20 | void chose_Dir(struct Dir_Data* Dir);
- | ~~~~~~~~~~~~~~~~~^~~
- main.cpp:78:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 78 | take_Data_Single(Card, Dir);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:22:45: note: initializing argument 1 of ‘void take_Data_Single(Card_Data*, Dir_Data*)’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:81:19: error: cannot convert ‘main()::Dir_Data*’ to ‘Dir_Data*’
- 81 | search_Dirs(Dir);
- | ^~~
- | |
- | main()::Dir_Data*
- In file included from main.cpp:18:
- Function.hh:18:39: note: initializing argument 1 of ‘void search_Dirs(Dir_Data*)’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ~~~~~~~~~~~~~~~~~^~~
- main.cpp:87:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 87 | inserting(Card);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:25:38: note: initializing argument 1 of ‘void inserting(Card_Data*)’
- 25 | void inserting(struct Card_Data* Card);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:88:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 88 | save_Data(Card, Dir);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:34:38: note: initializing argument 1 of ‘void save_Data(Card_Data*, Dir_Data*)’
- 34 | void save_Data(struct Card_Data* Card, struct Dir_Data* Dir);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:91:20: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 91 | print(Card);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:28:34: note: initializing argument 1 of ‘void print(Card_Data*)’
- 28 | void print(struct Card_Data* Card);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:96:23: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 96 | research(Card);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:41:37: note: initializing argument 1 of ‘void research(Card_Data*)’
- 41 | void research(struct Card_Data* Card);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:99:26: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 99 | cancel_Card(Card);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:31:40: note: initializing argument 1 of ‘void cancel_Card(Card_Data*)’
- 31 | void cancel_Card(struct Card_Data* Card);
- | ~~~~~~~~~~~~~~~~~~^~~~
- main.cpp:100:24: error: cannot convert ‘main()::Card_Data*’ to ‘Card_Data*’
- 100 | save_Data(Card, Dir);
- | ^~~~
- | |
- | main()::Card_Data*
- In file included from main.cpp:18:
- Function.hh:34:38: note: initializing argument 1 of ‘void save_Data(Card_Data*, Dir_Data*)’
- 34 | void save_Data(struct Card_Data* Card, struct Dir_Data* Dir);
- | ~~~~~~~~~~~~~~~~~~^~~~
- Function.cpp: In function ‘int int_Input()’:
- Function.cpp:13:31: error: ‘String_Input’ was not declared in this scope; did you mean ‘string_Input’?
- 13 | std::string S_Input = String_Input();
- | ^~~~~~~~~~~~
- | string_Input
- Function.cpp: In function ‘void create_Dir()’:
- Function.cpp:23:31: error: ‘String_Input’ was not declared in this scope; did you mean ‘string_Input’?
- 23 | std::string Dir_Name = String_Input();
- | ^~~~~~~~~~~~
- | string_Input
- Function.cpp: In function ‘void search_Dirs(ir_Data*)’:
- Function.cpp:40:22: error: no match for ‘operator/=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘const char [5]’)
- 40 | SearchingDir /= ".YGO";
- | ~~~~~~~~~~~~~^~~~~~~~~
- Function.cpp:42:54: error: expected ‘)’ before ‘{’ token
- 42 | for(auto &p : fs::directory_iterator(DataDir){
- | ~ ^
- | )
- Function.cpp:43:35: error: ‘const class std::filesystem::__cxx11::directory_entry’ has no member named ‘filename’
- 43 | std::cout << c << ": " << p.filename() << std::endl;
- | ^~~~~~~~
- Function.cpp:44:6: error: ‘DirName’ was not declared in this scope
- 44 | DirName->push_back();
- | ^~~~~~~
- Function.cpp: In function ‘void chose_Dir(Dir_Data*)’:
- Function.cpp:51:29: error: expected primary-expression before ‘*’ token
- 51 | search_Dirs(Dir_Data* Dir);
- | ^
- Function.cpp:56:9: error: ‘ChosenDir’ was not declared in this scope; did you mean ‘chose_Dir’?
- 56 | ChosenDir = DirName->at(Index);
- | ^~~~~~~~~
- | chose_Dir
- Function.cpp:56:21: error: ‘DirName’ was not declared in this scope
- 56 | ChosenDir = DirName->at(Index);
- | ^~~~~~~
- Function.cpp: In function ‘void take_Data_Single(Card_Data*, Dir_Data*)’:
- Function.cpp:64:36: error: invalid use of incomplete type ‘struct Dir_Data’
- 64 | std::ifstream CardNames(Dir->ChosenDir /= "CardNames.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:65:33: error: invalid use of incomplete type ‘struct Dir_Data’
- 65 | std::ifstream CardID(Dir->ChosenDir /= "CardID.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:66:39: error: invalid use of incomplete type ‘struct Dir_Data’
- 66 | std::ifstream CardQuantity(Dir->ChosenDir /= "CardQuantity.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:72:21: error: invalid use of incomplete type ‘struct Card_Data’
- 72 | Card->Card_Names.push_back(Dummy_Input); // Put the value of Dummy_Input
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:77:21: error: invalid use of incomplete type ‘struct Card_Data’
- 77 | Card->Card_Id.push_back(Dummy_Input);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:82:21: error: invalid use of incomplete type ‘struct Card_Data’
- 82 | Card->Card_Quantity.push_back(Dummy_Input);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:92:13: error: invalid use of incomplete type ‘struct Card_Data’
- 92 | Card->Card_Names.pop_back();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:93:13: error: invalid use of incomplete type ‘struct Card_Data’
- 93 | Card->Card_ID.pop_back();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:94:13: error: invalid use of incomplete type ‘struct Card_Data’
- 94 | Card->Card_Quantity.pop_back();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp: In function ‘void save_Data(Card_Data*, Dir_Data*)’:
- Function.cpp:98:36: error: invalid use of incomplete type ‘struct Dir_Data’
- 98 | std::ofstream CardNames(Dir->Chosen_Dir /= "CardNames.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:99:33: error: invalid use of incomplete type ‘struct Dir_Data’
- 99 | std::ofstream CardID(Dir->ChosenDir /= "CardID.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:100:39: error: invalid use of incomplete type ‘struct Dir_Data’
- 100 | std::ofstream CardQuantity(Dir->ChosenDir /= "CardQuantity.txt");
- | ^~
- In file included from Function.cpp:1:
- Function.hh:18:29: note: forward declaration of ‘struct Dir_Data’
- 18 | void search_Dirs(struct Dir_Data* Dir);
- | ^~~~~~~~
- Function.cpp:101:34: error: invalid use of incomplete type ‘struct Card_Data’
- 101 | for (std::string i : Card->Card_Names)
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:105:34: error: invalid use of incomplete type ‘struct Card_Data’
- 105 | for (std::string i : Card->Card_ID)
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:109:26: error: invalid use of incomplete type ‘struct Card_Data’
- 109 | for(std::string i : Card->Card-Quantity){
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:109:33: error: ‘Quantity’ was not declared in this scope; did you mean ‘CardQuantity’?
- 109 | for(std::string i : Card->Card-Quantity){
- | ^~~~~~~~
- | CardQuantity
- Function.cpp: In function ‘void inserting(Card_Data*)’:
- Function.cpp:132:6: error: invalid use of incomplete type ‘struct Card_Data’
- 132 | Card->Card_Names.push_back(Input_Name);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:133:13: error: invalid use of incomplete type ‘struct Card_Data’
- 133 | Card->Card_Id.push_back(Input_Id);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:134:6: error: invalid use of incomplete type ‘struct Card_Data’
- 134 | Card->Card_Quantity.push_back(Input_Quantity);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp: In function ‘void cancel_Card(Card_Data*)’:
- Function.cpp:144:17: error: invalid use of incomplete type ‘struct Card_Data’
- 144 | Card->Card_Names.erase(Name->begin());
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:144:36: error: ‘Name’ was not declared in this scope
- 144 | Card->Card_Names.erase(Name->begin());
- | ^~~~
- Function.cpp:145:17: error: invalid use of incomplete type ‘struct Card_Data’
- 145 | Card->Card_Id.erase(ID->begin());
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:145:33: error: ‘ID’ was not declared in this scope
- 145 | Card->Card_Id.erase(ID->begin());
- | ^~
- Function.cpp:146:17: error: invalid use of incomplete type ‘struct Card_Data’
- 146 | Card->Card_Quantity.erase(Quantity->begin());
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:146:39: error: ‘Quantity’ was not declared in this scope
- 146 | Card->Card_Quantity.erase(Quantity->begin());
- | ^~~~~~~~
- Function.cpp:149:17: error: invalid use of incomplete type ‘struct Card_Data’
- 149 | Card->Card_Names.erase(Card->Card_Names.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:149:40: error: invalid use of incomplete type ‘struct Card_Data’
- 149 | Card->Card_Names.erase(Card->Card_Names.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:150:17: error: invalid use of incomplete type ‘struct Card_Data’
- 150 | Card->Card_Id.erase(Card->Card_Id.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:150:37: error: invalid use of incomplete type ‘struct Card_Data’
- 150 | Card->Card_Id.erase(Card->Card_Id.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:151:10: error: invalid use of incomplete type ‘struct Card_Data’
- 151 | Card->Card_Quantity.erase(Card->Card_Quantity.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:151:36: error: invalid use of incomplete type ‘struct Card_Data’
- 151 | Card->Card_Quantity.erase(Card->Card_Quantity.begin() + i);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp: In function ‘void print(Card_Data*)’:
- Function.cpp:161:25: error: invalid use of incomplete type ‘struct Card_Data’
- 161 | Size_Name = Card->Card_Names.size();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:162:23: error: invalid use of incomplete type ‘struct Card_Data’
- 162 | Size_ID = Card->Card_Id.size();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:163:29: error: invalid use of incomplete type ‘struct Card_Data’
- 163 | Size_Quantity = Card->Card_Quantity.size();
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:168:40: error: invalid use of incomplete type ‘struct Card_Data’
- 168 | std::cout << " Name: " << Card->Card_Names.at(Index);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:169:38: error: invalid use of incomplete type ‘struct Card_Data’
- 169 | std::cout << " Id: " << Card->Card_Id.at(Index);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:170:42: error: invalid use of incomplete type ‘struct Card_Data’
- 170 | std::cout << " Amount: " << Card->Card_Quantity.at(Index) << std::endl;
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp: In function ‘int is_There(Card_Data*, std::string)’:
- Function.cpp:180:32: error: invalid use of incomplete type ‘struct Card_Data’
- 180 | for(int i = 0; i < Card->Card_Id.size(); ++i){
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:181:20: error: invalid use of incomplete type ‘struct Card_Data’
- 181 | if(Card->Card_Id.at(i) == To_Find){
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp: In function ‘void research(Card_Data*)’:
- Function.cpp:192:35: error: ‘ID’ was not declared in this scope
- 192 | int Output_Flag = IsThere(ID, To_Find);
- | ^~
- Function.cpp:192:27: error: ‘IsThere’ was not declared in this scope; did you mean ‘is_There’?
- 192 | int Output_Flag = IsThere(ID, To_Find);
- | ^~~~~~~
- | is_There
- Function.cpp:198:42: error: invalid use of incomplete type ‘struct Card_Data’
- 198 | std::cout << "Name: " << Card->Card_Names.at(Output_Flag);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:199:34: error: invalid use of incomplete type ‘struct Card_Data’
- 199 | std::cout << " ID: " << Card->Card_Id.at(Output_Flag);
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
- Function.cpp:200:38: error: invalid use of incomplete type ‘struct Card_Data’
- 200 | std::cout << " Amount: " << Card->Card_Quantity.at(Output_Flag)<< std::endl;
- | ^~
- In file included from Function.cpp:1:
- Function.hh:22:34: note: forward declaration of ‘struct Card_Data’
- 22 | void take_Data_Single(struct Card_Data* Card, struct Dir_Data* Dir);
- | ^~~~~~~~~
Advertisement
Add Comment
Please, Sign In to add comment