Skip to content

Conversation

@LetMeFly666
Copy link
Owner

By newSolution.py using GH on MacOS | close: #1110

java - AC,15.00%,15.00%
写还比较快
Line 23: Char 21: error: cannot find function `check2` in this scope (solution.rs)
   |
23 |                 if !check2(&points, i, j) {
   |                     ^^^^^^ not found in this scope
   |
help: consider using the associated function on `Self`
   |
23 |                 if !Self::check2(&points, i, j) {
   |                     ++++++
Line 31: Char 25: error: cannot find function `check3` in this scope (solution.rs)
   |
31 |                     if !check3(&points, i, j, k) {
   |                         ^^^^^^ not found in this scope
   |
help: consider using the associated function on `Self`
   |
31 |                     if !Self::check3(&points, i, j, k) {
   |                         ++++++
For more information about this error, try `rustc --explain E0425`.
error: could not compile `prog` (bin "prog") due to 2 previous errors
Line 23: Char 21: error: cannot find function `check2` in this scope (solution.rs)
   |
8  |     fn check2(&self, points: &Vec<Vec<i32>>, i: usize, j: usize) -> bool {
   |        ------ a method by that name is available on `Self` here
...
23 |                 if !check2(&points, i, j) {
   |                     ^^^^^^ not found in this scope
Line 31: Char 25: error: cannot find function `check3` in this scope (solution.rs)
   |
12 |     fn check3(&self, points: &Vec<Vec<i32>>, i: usize, j: usize, k: usize) -> bool {
   |        ------ a method by that name is available on `Self` here
...
31 |                     if !check3(&points, i, j, k) {
   |                         ^^^^^^ not found in this scope
For more information about this error, try `rustc --explain E0425`.
error: could not compile `prog` (bin "prog") due to 2 previous errors
rust - AC,33.33%,0.00%
cpp - AC,100.00%,21.43%
py - AC,100.00%,35.00%

Line 10: Char 13: undefined: abs (solution.go)
go - AC,100.00%,25.00%
rust - AC,100.00%,9.09%
Copilot AI review requested due to automatic review settings September 4, 2025 05:48
@LetMeFly666 LetMeFly666 added the 题解 Solution label Sep 4, 2025
@LetMeFly666 LetMeFly666 self-assigned this Sep 4, 2025
@LetMeFly666 LetMeFly666 added the under merge pr准备就绪 请做merge前最后的检查 label Sep 4, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a solution for LeetCode problem 3516 "Find Closest Person" including implementation code and solution documentation. The change simplifies git commit messages by removing unnecessary text about Mac overheating.

  • Adds complete solution files for problem 3516 including documentation and code implementations
  • Updates git commit message template to remove Mac overheating reference
  • Adds supplementary implementations for problem 3025 in Java and Rust

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
newSolution.py Simplified git commit message template by removing Mac overheating text
Solutions/LeetCode 3516.找到最近的人.md Added complete problem solution documentation with multiple language implementations
Solutions/LeetCode 3025.人员站位的方案数I.md Added Java and Rust implementations to existing solution
Codes/*.{cpp,py,go,rs} Added solution code files for problem 3516 in multiple languages
README.md Added entry for problem 3516 with links to solution and documentation
Solutions/Other-* Minor updates to English learning notes and removed comment headers

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Owner Author

@LetMeFly666 LetMeFly666 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Update Solutions/LeetCode 3516.找到最近的人.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@LetMeFly666 LetMeFly666 removed the under merge pr准备就绪 请做merge前最后的检查 label Sep 4, 2025
@LetMeFly666 LetMeFly666 merged commit 41271f6 into master Sep 4, 2025
1 check passed
@LetMeFly666 LetMeFly666 deleted the 3516 branch September 4, 2025 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

题解 Solution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[newSolution]Who can add 1 more problem of LeetCode 3516

2 participants