Parra
this is another example
Parra
the function has the same signature, i changed the body of main a little bit to adapt it to the new name
Parra
if the signature changes, you should adapt it too
Parra
this is like writing a history
Parra
you have a blank paper and you can write what you want in there
Parra
😄👍
🐰🐾 سمیه
Ok, I think I got it. But if I got stuck, I would summon you again 😊
🐰🐾 سمیه
Thanks 🌷🌷🌷
Anonymous
Hello everyone
MᏫᎻᎯᎷᎷᎬᎠ
Hi
itsmanjeet
I have a doubt In a program If we create a variable in a function A On execution the main fuction call function A And function A finished But main is still executing then variables in function A still occupy space or destroy after the execution of fuction A when main function is still executing
Ariana
variables in a function would just disappear after return
itsmanjeet
ok thank for help
Anonymous
and Im using GDB to debug programms.
But is it ok do not use -g flag while compiling, for debugging ?😐
Ariana
wut
Anonymous
Anonymous
https://www.codechef.com/COV42018/problems/DP
Anonymous
I m generating all cases for this problem so I m getting TLE. So,any other method for solving this?
Dima
/ban read the rules
klimi
yeah no problem
hello Parra
Parra
hello Kimli
Anonymous
Hey guys! how is everyone doing?
MᏫᎻᎯᎷᎷᎬᎠ
Good
Anonymous
I need help in writing C++ program for checking if a Hidato puzzle is solved correctly. Can someone help me?
BinaryByter
no, i really do
klimi
BinaryByter
change it to Klimi Goebbels
BinaryByter
xD
klimi
change it to Klimi Goebbels
You doesn't like my flipping table?
Anonymous
Mat
Nice
PresHacks
Write a program that calculates a car’s gas mileage. The program should ask the user to enter the number of gallons of gas the car can hold and the number of miles it can be driven on a full tank. It should then display the number of miles that may be driven per gallon of gas
Dima
So what's your problem
Dima
Do it
Dima
You can't count a car mileage?
PresHacks
please it is a request
Dima
Now, read the rules and think again
Anonymous
☺️
N3J
Hello guys I'm new here
klimi
Hello new here I'm klimi
Talula
Hello guys I'm new here
Okay... if you say so...
Elnee
Interesting challenge
Talula
Just checking if it's correctly solved? Duh.. that is simple.
Anonymous
really?
Elnee
Just checking if it's correctly solved? Duh.. that is simple.
Logically yes. But I think write an algorithm for that is not so simply.
Anonymous
yes
Talula
Array has to be 2 deminsional...
Talula
if the position in the array is filled with any number that isn't correct the solution is wrong.
Talula
Trick is to solve it using program... can be done but you'll have to go back and forth.
Talula
1. Search in array for 1 2. Find the cell in the array that has value 2 if it does... move to value 2... or it's wrong.
Talula
Move to cell which has 2 and search for the cells around it that has value 3...
Talula
And so on.
Elnee
I mean that "search the cells around" can be difficult cause all arrays have different sizes
Elnee
As for me, but I'm noob
BinaryByter
Interesting challenge
you should do it, but you will be hard pressed to find a challenge ^^
BinaryByter
then search the node with "1"
BinaryByter
and go through each node
BinaryByter
until i've reached every node
BinaryByter
then i'd check wether each node was filled
Talula
I mean that "search the cells around" can be difficult cause all arrays have different sizes
You have height and width of array sent to you when the function is called.
Ariana
imo a list of arrays of pairs is better for storing the shape of the map list of arrays -> to store where you can place a number and current state of arrays -> (row/column number, current number)
Elnee
Guys, I need different help. How can I calc function values with step 0.1 in c++? When I declare variable double step = 0.1 actually that is 0.10000000000001 So I can't write loop with that step cause it's never execute last step. But even if I'll write for loop with integer step I need function values for x 0.1, not 0.1000000000001
Elnee
then i'd check wether each node was filled
But they can be filled incorrect, can not?
BinaryByter
But they can be filled incorrect, can not?
thats why i'd go through each node first
BinaryByter
to check wether what they are filled with makes sense
BinaryByter
but that doesnt mean that every node was filled
BinaryByter
imagine node 41 wasn't filled
BinaryByter
that would mean that my first algo would report a "yes" even though the puzzle wasnt solved