QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#432076#2810. Speedrunegypt_ioi2024b_04#Compile Error//C++231.7kb2024-06-06 17:50:422024-06-06 17:50:43

详细

speedrun.code: In function ‘void init(int)’:
speedrun.code:20:18: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   20 |     for (int v : adj[u]) {
      |                  ^~~
speedrun.code:20:23: error: forming reference to reference type ‘std::vector<int>&’
   20 |     for (int v : adj[u]) {
      |                       ^
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~