453 questions
No suitable default constructor available Error appears This is one of the header files of the fruit-buying programThere's only one constructor error stuck here.class FruitSeller{private: const int AP...
This is the process of adding a constructor to an existing inheritance class code.Continue No instance of constructor MyFriendDetailInfo::MyFriendDetailInfo matching argument listMyFriendDetailInfo:::...
###Global variable declaration part##i,k=0,0##Main code part ##i=0while i<9: if i<5: k=0 while k<4-i: print(' ', end='') k+=1 k=0 while k<i*2+1: print('\u2665', end='')###Global var...
for i in range(2, 21): if i == 8: print() ####Source code #### print(i, end= ' ')Output value:2 3 4 5 6 7What code should be included in #### source code#### for the output to come out like this?i[0...
#include <iostream>using namespace std;#define MAXN (100000)int N;int sol[MAXN + 10];int wp, rp = 0;int que[MAXN + 10];void push(int d) { if (wp < MAXN) { que[wp] = d; ++wp; }}int front() {...
I'm going to take one line from the data frame, calculate it, and assign it to the new list one by one.If you look at it, only the number of rows 0 and 12 changes, but I don't know how to make it into...
while True: print(Getting page {}....format(page)) params[page] = page data = requests.post(url, json=params).json() # # uncomment to see all data: # # print(json.dumps(data, indent=4)) if not d...
I am asking you a question because a SyntaxError occurred while coding related to KNN...How can I solve this problem?def compute_distance(self, X_test, dist_metric='dot'): if dist_metric=='dot': sim...
Another error appears even though I modified the indentation just before.How do I solve this?
mymoney = input (ex. $100:)mymoney_sep = mymoney.split()mymoney_flo = float(mymoney_sep[0])toexch = input (Types of currency to exchange (ex. dollar, yen, euro, yuan, won):)# exchange = {'usd': 1167, ...
« | - 45 - | » |
© 2024 OneMinuteCode. All rights reserved.