1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Misha Larkins [42]
3 years ago
13

# 12/9/2020

Computers and Technology
1 answer:
EastWind [94]3 years ago
3 0

where it says   " def main() " there needs to be something in the "()"

Hope this helps.   : )

You might be interested in
What is the output of adding 1001011 and 100000?
Otrada [13]
1101011, 0x6B or 0153
7 0
3 years ago
Authentication builds on identification by requiring that the subject provide proof of its identity. True False
Nesterboy [21]

True

Hope this helps!

7 0
4 years ago
PLEASE HELP!! How do I bypass the question limit on brainly? They made it to where if you turn off the cookies for the website t
Rina8888 [55]
This makes no sense
7 0
3 years ago
Which family does Ms word 2007 belongs to?​
kari74 [83]

Explanation:

Ms word 2007 belongs tt the family of Microsoft office.

8 0
3 years ago
Read 2 more answers
p3_unzip :: [(a,b)] -> ([a], [b]) Write a function that takes a list of two-tuples and returns a tuple of two lists -- the fi
klio [65]

Answer:

<em>C++.</em>

Explanation:

#include <iostream>

#include<tuple>

using namespace std;

////////////////////////////////////////////////////////////

tuple<char*, int*> p3_unzip(tuple<char, int>* list, int count) {

   char* list1 = new char[count];

   int* list2 = new int[count];

   

   for (int i=0; i<count; i++) {

       tuple<char, int> temp = list[i];

       list1[i] = get<0>(temp);

       list2[i] = get<1>(temp);

   }

   

   tuple<char*, int*> new_tuple;

   get<0>(new_tuple) = list1;

   get<1>(new_tuple) = list2;

   

   return new_tuple;

}

int main() {

   tuple<char, int>* list;

   int count = 0;

   ////////////////////////////////////////

   cout<<"How many tuples? ";

   cin>>count;

   list = new tuple<char, int>[count];

   cout<<endl;

   

   char a;

   int b;

   tuple<char, int> temp;

   for (int i=0; i<count; i++) {

       cout<<"tuple "<<i+1<<" char: ";

       cin>>a;

       get<0>(temp) = a;

       

       cout<<"tuple "<<i+1<<" int: ";

       cin>>b;

       get<1>(temp) = b;

       

       list[i] = temp;

       cout<<endl;

   }

   ////////////////////////////////////////

   tuple<char*, int*> new_tuple = p3_unzip(list, count);

   char* list1 =  get<0>(new_tuple);

   int* list2 = get<1>(new_tuple);

   

   cout<<"Returned tuple:([";

   for (int i=0; i<count-1; i++) {

       cout<<list1[i]<<", ";

   }

   

   cout<<list1[count-1]<<"],[";

   

   for (int i=0; i<count-1; i++) {

       cout<<list2[i]<<", ";

   }

   

   cout<<list2[count-1]<<"])";

   ////////////////////////////////////////

   delete[] list, list1, list2;

   return 0;

}

4 0
4 years ago
Other questions:
  • How can you best protect yourself when using social media?
    14·2 answers
  • PLEASE HELP!!!
    12·1 answer
  • A tiny spot on an LCD monitor display screen that permanently remains black when it should be activated and displaying color is
    12·1 answer
  • Which data type is –7?<br><br> int<br><br> single<br><br> string<br><br> float
    15·1 answer
  • Who is the CEO of Epic Games?​
    7·2 answers
  • Moving your Sprite from right to left is considered the X coordinate?
    5·1 answer
  • Whats your favorite thing about tech
    11·2 answers
  • Plz help
    5·1 answer
  • Here’s my last question
    12·2 answers
  • put together a shopping list of items that a first responder should always have at immediate disposal in a field kit. Using curr
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!