QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#249208 | #7629. Make SYSU Great Again II | ucup-team2045# | Compile Error | / | / | C++14 | 986b | 2023-11-12 02:02:28 | 2023-11-12 02:02:28 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void solve()’: answer.code:32:102: error: no match for ‘operator=’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’) 32 | for (int j=0; j<n; j++) cout<<chk[i][j]=p[(i+j)%(m-1)]+m*p[(i-j+m-1+m-1)%(m-1)]<<" \n"[j+1==n]; | ^ In file included from /usr/include/c++/11/istream:39, from /usr/include/c++/11/sstream:38, from /usr/include/c++/11/complex:45, from /usr/include/c++/11/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54, from answer.code:1: /usr/include/c++/11/ostream:415:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]’ 415 | operator=(basic_ostream&& __rhs) | ^~~~~~~~ /usr/include/c++/11/ostream:415:33: note: no known conversion for argument 1 from ‘long long int’ to ‘std::basic_ostream<char>&&’ 415 | operator=(basic_ostream&& __rhs) | ~~~~~~~~~~~~~~~~^~~~~