QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#306061#9. 简单回路ahihi1234Compile Error//C++142.1kb2024-01-16 11:38:182024-01-16 11:38:19

Details

answer.code:56:11: error: redefinition of ‘const long long int mod’
   56 | const int mod=1e9+7, N=101;
      |           ^~~
answer.code:11:11: note: ‘const long long int mod’ previously defined here
   11 | const int mod=1e9+7, N=101;
      |           ^~~
answer.code:56:22: error: redefinition of ‘const long long int N’
   56 | const int mod=1e9+7, N=101;
      |                      ^
answer.code:11:22: note: ‘const long long int N’ previously defined here
   11 | const int mod=1e9+7, N=101;
      |                      ^
answer.code:57:5: error: redefinition of ‘long long int n’
   57 | int n, m, k, q;
      |     ^
answer.code:12:5: note: ‘long long int n’ previously declared here
   12 | int n, m, k, q;
      |     ^
answer.code:57:8: error: redefinition of ‘long long int m’
   57 | int n, m, k, q;
      |        ^
answer.code:12:8: note: ‘long long int m’ previously declared here
   12 | int n, m, k, q;
      |        ^
answer.code:57:11: error: redefinition of ‘long long int k’
   57 | int n, m, k, q;
      |           ^
answer.code:12:11: note: ‘long long int k’ previously declared here
   12 | int n, m, k, q;
      |           ^
answer.code:57:14: error: redefinition of ‘long long int q’
   57 | int n, m, k, q;
      |              ^
answer.code:12:14: note: ‘long long int q’ previously declared here
   12 | int n, m, k, q;
      |              ^
answer.code:58:16: error: redefinition of ‘std::pair<long long int, long long int> a [101]’
   58 | pair<int, int> a[N];
      |                ^
answer.code:13:16: note: ‘std::pair<long long int, long long int> a [101]’ previously defined here
   13 | pair<int, int> a[N];
      |                ^
answer.code:60:6: error: redefinition of ‘void solve()’
   60 | void solve(){
      |      ^~~~~
answer.code:15:6: note: ‘void solve()’ previously defined here
   15 | void solve(){
      |      ^~~~~
answer.code:82:9: error: redefinition of ‘int32_t main()’
   82 | int32_t main(){
      |         ^~~~
answer.code:38:9: note: ‘int32_t main()’ previously defined here
   38 | int32_t main(){
      |         ^~~~