fork download
  1. public class Solution {
  2. public int SearchInsert(int[] nums, int target) {
  3. for(int i = 0; i < nums.Length; i++)
  4. {
  5. if (nums[i] >= target)
  6. return i;
  7. }
  8. return nums.Length;
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.100

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
Package source with Name: nuget.org disabled successfully.
Package source with Name: local added successfully.
CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [/home/VxqkOr/Project/Project.csproj]



CSC : error CS5001: Program does not contain a static 'Main' method suitable for an entry point [/home/VxqkOr/Project/Project.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.21
stdout
Standard output is empty