QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#310593#5419. TrianglesGuanYunchangCompile Error//C++141.7kb2024-01-21 15:55:492024-01-21 15:55:49

詳細信息

answer.code: In function ‘void solve(int (*)[6], int, int)’:
answer.code:40:49: warning: narrowing conversion of ‘((double)(*(A + (sizetype)((long unsigned int)i * 24)))[j] * 5.0e+7)’ from ‘double’ to ‘std::vector<int>::value_type’ {aka ‘int’} [-Wnarrowing]
   40 |         for(int j=0;j<6;j++)x.push_back({A[i][j]*5e7});
      |                                          ~~~~~~~^~~~
answer.code: In function ‘int main()’:
answer.code:68:5: error: ‘else’ without a previous ‘if’
   68 |     else solve(C,10,n);
      |     ^~~~
answer.code:63:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   63 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~