why is this not running, multiple errors - c++11

i have copied and pasted the solution of this leetcode problem, yet it doesn't run successful when I go to terminal and select run task. Any help is greatly appreciatedattached photo
i think my problem is either #include something or maybe std::, but if i do std:: then i would have to do alot of std::

try
#include<bits/stdc++.h> and
use namespace std;

Related

Stm32CubeIDE can't flash because of arm-eabi-gcc

I'm on Archlinux trying to flash a Nucleo STM32F446 board using STM32CubeIDE.
While running an example code (correctly build without problem), i get this error :
The quite not fun fact is that the command "arm-none-eabi-gdb --version" works well when i launch it on terminal.
And the same way, the file "libncurses.so.5" is linked in /usr/lib/libncurses.so.5 :
well, i'm lost here. i don't know what more to do. Even if i already checked a few forums, i know i'm not the only one with this issue.
Thanks for your help !
Well, kinda figured it out,
an AUR package can solve the problem : ncurses5-compat-libs
https://aur.archlinux.org/packages/ncurses5-compat-libs/
Download this package after removing the handmades links helps removing thins error.
Unfortunately, an other error, which seems to come from the code of the package itselfs pops up instead :
But i will create an other topic specifically on this one.
Have a great day, hope it works well for you !

SASS Compass Complie

Our system is using compass to compile sass files. Following the same workflow as usual today when I run compass compile there is a long pause followed by "killed" with no errors or warning.
I'm not even sure how to troubleshoot this issue. Has anyone else run into a similar problem? If so, how did you solve it?
Thank you in advance...
update
I have been through the code and I cannot find a pattern to it not compiling. After making a minor change it compiled successfully making another minor change it failed. Each time I believe the problem is resolved, I make a change that's very small in scope and it breaks it again... for example removing and id (#main) from a definition stops the compile... putting it back does not fix the problem... adding a comment fixes the problem... remove it and it stays fixed, until I make another change .... I've matched my braces and gone over every change made in the last 3 days... I cannot find a cause for the error, or why its not behaving consistently
If other commands on the server die with a "Killed" error message, it could be a resource issue. Check your server logs for out of memory errors.

Weird path situation in Laravel. Why is this working?

I'm working on some Laravel code in PHPStorm and I just noticed a weird path problem. Looking at the project directory
it's obvious the path to my models is App\Models but if you look at the code, the path is App\Http\Models. If I change the code to use App\Model, PHPStorm complains that it can't find the model, and when I run the code I get the same error.
I've looked throughout my code and this is the case everywhere.
What's going on here?
Take a look at the namespace section in your model files.
It should point to
namespace App\Models
and not to
namespace App\Http\Models

Top command failing in my embedded device

When I fire the top command for my board it says 'vt102': unknown terminal type. I cant seem to figure out why it is happening so I have also loaded the library files from my PC into the board.The procps was built using my own cross-sompiled gcc which went quite well. Does anyone know what is missing?
Probably the problem lies in the TERM environment variable.
Try to do
export TERM=linux
and to relaunch top
I instead hacked into the code and commented the //#include asm/page.h and good gracious it worked.
If anyone need help on the issue leave a post.

Find StackOverflow generating code in C# using VS2010

I have solution with few projects for calculation proposes. Code after 20 minutes of work crashing by StackOverflowException. How to find problem? I don't have any recursion functions in code or when i have then by mistake, i don't writing this things.
With what tool i can find some recursions or other things that can produce StackOverFlowException? Or how to find some information that can lead me to solve problem?
Thanks!
Run it in the VS debugger and look at the call stack after the exception occurs.

Resources