Giter Site home page Giter Site logo

simplecppeditor's Introduction

Hi there 👋

simplecppeditor's People

Contributors

tumoiyorozu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

reputeless

simplecppeditor's Issues

追加で日本語化するエラー・警告メッセージの提案

追加で日本語対応すると良さそうなメッセージの提案です。

1. unused parameter

int F(int n)
{
	return 0;
}

int main()
{

}

2. no return statement in function returning non-void

int F(int n)
{
	n *= 2;
}

int main()
{

}

3. no matching function for call to

#include <bits/stdc++.h>

int main()
{
	std::vector<int> v;
	std::min(0, v.size());
}

4. stray '\343' in program

#include <bits/stdc++.h>

int main()
{
	std::cout << "Hello\n";
}

5. suggest parentheses around

int main()
{
	int n = 3;

	if (1 << n - 1 & 1)
	{

	}

	if (1 << n + 1 & 1)
	{

	}
}

6. format '%f' expects argument of type 'double', but argument 2 has type 'int'

#include <bits/stdc++.h>

int main()
{
	printf("%.10f", 12345);
}

7. left shift count >= width of type

8. shift exponent 32 is too large for 32-bit type 'int'

#include <bits/stdc++.h>
 
int main()
{
	int i = 1 << 32;

	std::cout << i << '\n';
}

9. left operand of comma operator has no effect

int main()
{
	for (int i = 0, j = 0 ; i < 3, j < 20; ++i, j += 2)
	{

	}
}

10. this statement may fall through

#include <bits/stdc++.h>

int main()
{
	int n;
	std::cin >> n;
	
	switch (n)
	{
		case 0:
			std::cout << "0\n";
		case 1:
			std::cout << "1\n";
		case 2:
			std::cout << "2\n";
		default:
			break;
	}
}

11. too many initializers

#include <bits/stdc++.h>

int main()
{
	int a[2] = { 0, -1, 0, 1 };

	std::cout << a[0];
}

12. overflow in conversion from

#include <bits/stdc++.h>

int main()
{
	const int mod = 1'000'000'000'007;

	std::cout << mod << '\n';
}

13. comparison of unsigned expression >= 0 is always true

#include <bits/stdc++.h>

int main()
{
	std::vector<int> v;

	for (size_t i = (v.size() - 1); i >= 0; --i)
	{

	}
}

14. 'a' is used uninitialized in this function

#include <bits/stdc++.h>

int main()
{
	int a;

	std::cout << a;
}

15. suggest braces around empty body in an 'if' statement

#include <bits/stdc++.h>

int main()
{
	int a;
	std::cin >> a;

	if (a % 2 == 0);
	{
		std::cout << "Yes\n";
	}
}

16. suggest explicit braces to avoid ambiguous 'else'

#include <bits/stdc++.h>

int main()
{
	int a;
	std::cin >> a;

	if (a % 2 == 0)
		if (a % 3 == 0)
			std::cout << "Yes\n";
	else
		std::cout << "No\n";
}

17. comparisons like 'X<=Y<=Z' do not have their mathematical meaning

#include <bits/stdc++.h>

int main()
{
	int a;
	std::cin >> a;

	if (0 <= a <= 99)
	{

	}
}

18. expected ';' after struct definition

struct Point
{
	int x, y;
}

int main()
{

}

nodeの環境に関して

せっかくnpm使ってるんだから色々npmに依存すればいいんじゃないかという提案

エディタ部をAceにする

エディタ部をVSCodeにも使用されているmonacoを使用しているが、Android, iOS での使用が想定されておらず、壊滅的なので、Ace に置き換える

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.