Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Find correct assignment statements. Part 1 Cost: 1 0 | Solved: 1 0 Memory limit: 2 5 6 Mb Time limit: 1 0 0 0

Find correct assignment statements. Part 1
Cost: 10| Solved: 10
Memory limit: 256 Mb
Time limit: 1000 ms
Input file: stdin
Output file: stdout
Task:
You are given a set of strings separated with line feed characters.
Find all the substrings that are correct assignment statements.
In this task a string is considered to be a correct assignment statement when:
a variable is assigned to a constant value;
a variable is assigned to another variable.
For example, the strings "a9f =7;" and "a=b;;" are considered to be correct assignment statements (note that there is a semicolon at the end of each statement).
The strings "a=6","a-=10; ","d=#$&_h" are considered to be incorrect.
Input:
A set of strings separated with line feed characters.
Output:
All the longest correct substrings in the order in which they appear in the text, separating each with a line feed character.
** Use only C++**
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago