QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#445967#2810. Speedrunegypt_ioi2024_04#Compile Error//C++202.9kb2024-06-16 18:07:342024-06-21 22:28:02

详细

speedrun.code: In function ‘void speedrun(int, int, int)’:
speedrun.code:109:28: error: array must be initialized with a brace-enclosed initializer
  109 |         int z=Nxt(),a[i+1]=z;
      |                            ^
grader_speedrun.cpp: In function ‘int readvalue()’:
grader_speedrun.cpp:9:9: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    9 |   fscanf(input, "%d", &val);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~