QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#596909#9417. Palindromic Polygonucup-team3607#Compile Error//C++1420.1kb2024-09-28 16:41:032024-09-28 16:41:11

详细

answer.code:15:22: error: too many decimal points in number
   15 |     let f: Vec<_> = (0..n).map(|_| scan.next::<u32>()).collect();
      |                      ^~~~
answer.code:17:25: error: too many decimal points in number
   17 |     let poly: Vec<_> = (0..n)
      |                         ^~~~
answer.code:32:14: error: too many decimal points in number
   32 |     for j in 0..cycle.len() {
      |              ^~~~~~~~~~~~
answer.code:35:22: error: too many decimal points in number
   35 |         for i in j + 1..cycle.len().min(j + n) {
      |                      ^~~~~~~~~~~~
answer.code:42:16: error: too many decimal points in number
   42 |     for len in 0..n {
      |                ^~~~
answer.code:43:18: error: too many decimal points in number
   43 |         for l in 0..(cycle.len() - len) {
      |                  ^~~
answer.code:55:30: error: too many decimal points in number
   55 |                 for j in r + 1..(l + n).min(cycle.len()) {
      |                              ^~~
answer.code:73:18: error: too many decimal points in number
   73 |     for _test in 0..t {
      |                  ^~~~
answer.code:80:2: error: invalid preprocessing directive #[
   80 | #[allow(dead_code)]
      |  ^
answer.code:102:18: warning: character constant too long for its type
  102 |             impl<'a> $op_trait<$other> for &'a $name {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:110:18: warning: character constant too long for its type
  110 |             impl<'a> $op_trait<&$other> for &'a $name {
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:160:6: error: invalid preprocessing directive #[
  160 |     #[allow(dead_code)]
      |      ^
answer.code:471:10: error: invalid preprocessing directive #[
  471 |         #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash)]
      |          ^
answer.code:477:10: error: invalid preprocessing directive #[
  477 |         #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash)]
      |          ^
answer.code:483:10: error: invalid preprocessing directive #[
  483 |         #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash)]
      |          ^
answer.code:489:10: error: invalid preprocessing directive #[
  489 |         #[derive(Debug, Default, Copy, Clone, Eq, PartialEq, Hash)]
      |          ^
answer.code:501:6: error: invalid preprocessing directive #[
  501 |     #[allow(dead_code)]
      |      ^
answer.code:505:10: error: invalid preprocessing directive #[
  505 |         #[derive(Debug, Default, Copy, Clone, Hash)]
      |          ^
answer.code:664:6: error: invalid preprocessing directive #[
  664 |     #[allow(dead_code)]
      |      ^
answer.code:671:6: error: invalid preprocessing directive #[
  671 |     #[allow(dead_code)]
      |      ^
answer.code:1:1: error: ‘use’ does not name a type
    1 | use self::complex::ComplexI32;
      | ^~~
answer.code:2:1: error: ‘pub’ does not name a type
    2 | pub use self::template::*;
      | ^~~
answer.code:3:1: error: ‘use’ does not name a type
    3 | use std::io::{stdin, stdout, BufWriter, Write};
      | ^~~
answer.code:5:1: error: ‘fn’ does not name a type
    5 | fn area(a: ComplexI32, mut b: ComplexI32, mut c: ComplexI32) -> i64 {
      | ^~
answer.code:12:1: error: ‘fn’ does not name a type
   12 | fn solve_test(scan: &mut impl Scanner, cout: &mut impl Write) -> Result<(), std::io::Error> {
      | ^~
answer.code:70:1: error: ‘pub’ does not name a type
   70 | pub fn solve(scan: &mut impl Scanner, cout: &mut impl Write) {
      | ^~~
answer.code:81:1: error: ‘fn’ does not name a type
   81 | fn main() {
      | ^~
answer.code:88:1: error: ‘pub’ does not name a type
   88 | pub mod template {
      | ^~~