What's wrong with this program in C++ using an archive input?
Using fflush(stdin)
Regarding the `book`, `report`, and `article` document classes: what are the main differences? How can I prove that the Cartesian product of two countable sets is also countable? Justify text in moderncv cover letter I am writing a cover letter and CV using moderncv. Everything works fine so far, but the text in the cover letter is not justified. I think it is good that it is not hyphenated, but it would look much nicer if the text was justified.  Here is a minimal example:  \documentclass{moderncv} \moderncvstyle{classic}  \usepackage{lipsum} % just for dummy text  \firstname{John} \familyname{Doe}  \begin{document} \recipient{Prof.\ Dr.\ Foo Bar}{} \opening{Dear Professor Dr.\ Bar,} \closing{Yours sincerely,} \enclosure[Attached]{curriculum vit\ae}  \makelettertitle \lipsum[1] \makeletterclosing  \clearpage  \makecvtitle  \section{Education} \cventry{2009--present}{PhD Student}{here}{and}{there}{} \end{document} Trash icon and files have disappeared from the desktop after upgrade to Ubuntu 19.04 Yesterday I upgraded my Ubuntu 18.10 to Ubuntu 19.04, and after the restart, the trash icon and my Desktop files have disappeared from the UI. If I go to the Desktop folder from my personal folder, I can see the files, but my Desktop is empty.  How can I show my files in the Desktop again? How to fix dpkg error [2]? Every time I try to install or remove a package, I get this error. I thought maybe it was the hard disk, but a disk check gave me a clean bill of health. dpkg: unrecoverable fatal error, aborting: reading files list for package 'linux-headers-3.16.0-31': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  I tried the solution of removing the listing for this file from the dpkg status file, but to no avail. I tried purging the package but no use. I'm stuck at this point as nothing I can find on Google helps. Update: This is now what the error says: dpkg: unrecoverable fatal error, aborting: E: Sub-process /usr/bin/dpkg returned an error code (2) A package failed to install.  Trying to recover:  After trying:  Update2: Seems the drive has bad sectors, but the reallocated sector count is 0. The drive is relatively old, however, so I expect some issues. I won't be able to replace it immediately, and until then I would still like to be able to keep the system up to date (especially for security reasons). I noted that there was an issue with coping some md5 checksums related to the package mentioned in the error, but I don't know what to do with those, such as if clearing them would allow dpkg to continue. window-switching keyboard shortcuts interfere with emacs and cannot be changed in the main keyboard system preferences How do I install the VirtualBox version from Oracle to install an Extension Pack? Each Stack Exchange site has a weekly email newsletter.  What is in the newsletter? Who composes them and selects what is included? How do I subscribe and unsubscribe to a newsletter? Pre-1972 sci-fi short story or novel: alien(?) tunnel where people try new moves and get destroyed if they're not the correct ones It might be a short story or it might be a novel. It must be before 1972 because I read it in my youth and I am OLD.  The following is very impressionistic.  There is a multidimensional/not of this Earth/alien artifact-like tunnel.   Picture a long, perhaps transparent, storm drain like structure sitting in a field but with an opening on only one end.  It is the subject of a lengthy investigation/exploration that has cost many lives. An instrumented investigator enters the "tunnel" and makes the exact movements that his predecessors have made, advancing until he must do something original at which point he survives and a new "move" is added to the list of correct moves or he is destroyed and a "move" is added to the list of things to be avoided at that point.  I remember absolutely nothing else about the work except that (I hope central) feature. Why are rings called rings? Searching by user id in Android app only shows questions, no answers I have a Samsung Galaxy S3. Android version 4.3  I downloaded the official StackExchange app today. I am not able to view post related to android tag from my profile. I tried refreshing also  Snap     Edit:  However i am able to see one post for the relevant from the drop down list    Edit 2:  I tried what Steven V suggested. However it's the same.    I tried for a different user its the same. Design simulates perfectly but won't work on FPGA What is the result of $\infty - \infty$? I would say $\infty - \infty=0$ because even though $\infty$ is an undetermined number, $\infty = \infty$. So $\infty-\infty=0$. What are watched tags and ignored tags? How do they work? What are tag subscriptions? What are interesting tags? On Stack Overflow, the content of the main page question list appears to be influenced by watched and ignored tags. How does that work?   For more information, see &quot;&quot; in the . How to mount an internal HDD on start-up? Remove duplicate rows in MySQL I have this annoying problem in Gmail. Spammers are by-passing the Gmail spam filters and are so clever that I am not able to create a manual filter of my own to block them. They are sending me junk mails from e-mail IDs of the form:  Jewelskart@greatestjewels.in via watchstore.cleanmail.in  Shoppingkart@shoppers.in via watchstore.cleanmail.in   In general,  something@somethingelse.in via watchstore.cleanmail.in   Now, I cant set a filter for each and every mail as they are from different IDs. The common part is the via address which is watchstore.cleanmail.in. But when I try creating a filter with watchstore.cleanmail.in in From field, Gmail doesn't list these emails. In short, the filter is not able to detect via addresses.  Report Spam/Unsubscribe options aren't working.  How can I get rid of these annoying spammers? Let $G$ be a finite group. For each positive integer $m$, if $x^{m}=e$ has at most $m$ solutions in $G$, $G$ is cyclic.   What I have thought is that $n=\sum_{d\mid n}\phi(d)$ can be used to solve this and showing that $|G|$ order element in $G$ exists is enough. Asynchronous shell exec in PHP Generating list of manually installed packages and querying individual packages