raysean
Sorry guys which software I can use to remove password protection in zip file?
Anonymous
Try a dictionary attack with a password cracker. best luck
Anonymous
Has anyone ever encountered a code where while giving input, it just stops in between without accepting all the input, stops responding(without exiting)?
Anonymous
What's an informative group? 🤔
basically... i am beginner in programming. So for me, this group is lit. You all guys provide so much information & share knowledge. Thanks
Anonymous
Let me send a pic
Mat
Let me send a pic
Read the pinned message
Anonymous
It should also print 4:4
Anonymous
This part might be a problem
Anonymous
Heres the link of full code https://pastebin.com/y7CFTSs5
Anonymous
Read the pinned message
I have searched it online, but still couldn't figure out anything, maybe i am out words to google it
Anonymous
Heres the link of full code https://pastebin.com/y7CFTSs5
I have also attached 2 sample test input at the end of the code, second one gets accepted while the first one doesn't
olli
This part might be a problem
Variable length arrays are not allowed in c++. Btw. for the second codejam test case long long int is way too small
Anonymous
Variable length arrays are not allowed in c++. Btw. for the second codejam test case long long int is way too small
Thats actually wierd becuase i have used variable sized array in many cpp programs. Yes long long int is too small, i want to work on the first test case first
Anonymous
Variable length arrays are not allowed in c++. Btw. for the second codejam test case long long int is way too small
And any idea why it accepted one of the test case i gave? It even threw floating point exception for another test
Naeem Khan
#include <stdio.h> int main() { int t,k,a[10] ,sum,i; scanf("%d" ,&i);t=i; for(i=0;i<=t-1;i++) { scanf("%d",a[i]); printf("shuru:");} k=i; for(i=0;i<=k;i++) sum+=a[i]; printf("%d" ,sum) ; return 0; }
Naeem Khan
Where's the problem?
Mat
Where's the problem?
Tell us the error at least
olli
And any idea why it accepted one of the test case i gave? It even threw floating point exception for another test
cipher[i] = dec[i-1] / cipher[i-1]; - out of bounds access why don't you use modern language features? This is basically C++98...
Anonymous
cipher[i] = dec[i-1] / cipher[i-1]; - out of bounds access why don't you use modern language features? This is basically C++98...
Other than variable sized array is there anything else thats C++98 in that code? I mean what other modern feature can i use here?
Anonymous
Can anyone help me with how to use string tokenizer in c++? I mean the strtok() function
Ludovic 'Archivist'
Can anyone help me with how to use string tokenizer in c++? I mean the strtok() function
The best advice I can give you is stay away from it in C++, use a string_stream to provide the functionality eventually
Anonymous
Ok thanks
Anonymous
Anonymous
Hey guys
Anonymous
Whats wrong with my code?
Dima
What the....
Anonymous
Wh-
Anonymous
Did i say anything wrong?🤔
Anonymous
No but
Anonymous
Arghhh😩 just say🙂
Anonymous
Your code is super odd
Anonymous
Ohhh
Anonymous
I am a newbie
Anonymous
Was learning python, but switched like on saturday🤷‍♂️... so still dont have much under my belt
Mihail
Use { not [
Anonymous
Alright I'm sorry
Anonymous
Someone please explain how to use stringstream
Anonymous
Use { not [
I did, but I am still getting error😢
Mihail
Why use push back?
Mihail
Make it const and add the values at initialization
Mihail
He doesn't change those
Anonymous
int main() { string line = "GeeksForGeeks is a must try"; // Vector of string to save tokens vector <string> tokens; // stringstream class check1 stringstream check1(line); string intermediate; // Tokenizing w.r.t. space ' ' while(getline(check1, intermediate, ' ')) { tokens.push_back(intermediate); } // Printing the token vector for(int i = 0; i < tokens.size(); i++) cout << tokens[i] << '\n'; }
Anonymous
help me with this please!!
Mihail
It's +=
Mihail
Not sure how to explain it very well
Mihail
help me with this please!!
http://www.cplusplus.com/reference/sstream/stringstream/stringstream/ here's a simple example
Anonymous
Mihail
But what is that getline() function doing
It's reading a string from the stringstream
Mihail
With a delimiter of ' '
Anonymous
It's reading a string from the stringstream
And making intermediate = to the first token right?
Mihail
Yes
Anonymous
Ok thanks👍👍
Mihail
To the first string in check1
Mihail
Stopping at a whitespace
Anonymous
Can we have a lil chat in prsnl maybe if u don't mind?
Dima
/ban Announcement
Raul
Is this code blocks? Make sure you have C++11 compiler flags turned on.
BinaryByter
this is the drunk +=
BinaryByter
though its probably parsed as an = and a positivity sign
BinaryByter
yep
BinaryByter
he doesnt need one
BinaryByter
but the =+ is parsed as such
🐰🐾 سمیه
Can I ask an off-topic question? 😶
Anonymous
Can I ask an off-topic question? 😶
Go to the off topic group and ask
🐰🐾 سمیه
🐰🐾 سمیه
These are my laptop features, what SSD should I get?
BinaryByter
downloadmoreram.com
🐰🐾 سمیه
I want 250 Gig one
BinaryByter
any SSD should be fine unless you are a pro gamer
BinaryByter
lol