QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#481233#2810. Speedrunegypt_ioi2024b_05#Compile Error//C++233.8kb2024-07-16 21:54:522024-07-16 21:54:52

詳細信息

speedrun.code:15:7: error: expected nested-name-specifier before ‘ll’
   15 | using ll = long long;
      |       ^~
speedrun.code:17:7: error: ‘ll’ does not name a type
   17 | const ll inf = 1e18;
      |       ^~
speedrun.code: In function ‘void assignHints(int, int, int*, int*)’:
speedrun.code:20:21: error: ‘>>’ should be ‘> >’ within a nested template argument list
   20 |  vector <vector <int>> a(n+1);
      |                     ^~
      |                     > >
speedrun.code:56:26: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’
   56 |             for(int& j : a[i])h[i][j] = '1';
      |                          ^
speedrun.code:56:29: error: forming reference to reference type ‘std::vector<int>&’
   56 |             for(int& j : a[i])h[i][j] = '1';
      |                             ^
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);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~