QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#426220#3857. Single-track railwayZhangYiDeCompile Error//C++171.8kb2024-05-30 23:10:112024-05-30 23:10:11

详细

answer.code:6:8: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
    6 | ll sum[1e6], ans, ans1;
      |        ^~~
answer.code:6:8: error: could not convert ‘1.0e+6’ from ‘double’ to ‘long unsigned int’
    6 | ll sum[1e6], ans, ans1;
      |        ^~~
      |        |
      |        double
answer.code:6:8: error: size of array ‘sum’ has non-integral type ‘double’