QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#130185#6376. LaLa and LampkkioCompile Error//C++141.1kb2023-07-23 17:32:182023-07-23 17:32:21

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-23 17:32:21]
  • 评测
  • [2023-07-23 17:32:18]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
const int maxn=2005;
int a[maxn],b[maxn],c[maxn],s[maxn][maxn],n;
int main()
{
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
        for(int j=1;j<=i;j++)
            scanf("%1d",&s[i][j]);
p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
            for(b[1]=0;b[1]<=1;b[1]++)
            {
                c[1]=s[n][1]^a[n]^b[1];
                for(int i=2;i<=n;i++)
                    c[i]=s[n-1][i-1]^b[i-1]^a[n-1],b[i]=a[n]^c[i]^s[n][i];
                bool ok=1;
                for(int i=n-3;i>=1;i--)
                {
                    int flag=0;
                    for(int j=1;j<=i;j++)
                    {
                        int v=s[i][j]^c[n-i+j]^b[j];
                        if(v)flag|=2;
                        else flag|=1;
                    }
                    if(flag==3){ok=0;break;}
                }
                if(ok){
                    puts("Yes");
                    return 0;
                }
            }
    puts("No");
    return 0;
}

详细

answer.code: In function ‘int main()’:
answer.code:11:1: error: ‘p’ was not declared in this scope
   11 | p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
      | ^
answer.code:11:3: error: ‘ll’ was not declared in this scope
   11 | p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
      |   ^~
answer.code:11:5: error: expected ‘]’ before ‘;’ token
   11 | p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
      |     ^
      |     ]
answer.code:11:6: error: ‘mfefewfewfqefe43efeffwe’ was not declared in this scope
   11 | p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
      |      ^~~~~~~~~~~~~~~~~~~~~~~
answer.code:11:68: error: expected ‘;’ before ‘)’ token
   11 | p[ll;mfefewfewfqefe43efeffwe        for(a[n-1]=0;a[n-1]<=1;a[n-1]++)
      |                                                                    ^
      |                                                                    ;
answer.code:12:38: error: expected ‘;’ before ‘)’ token
   12 |             for(b[1]=0;b[1]<=1;b[1]++)
      |                                      ^
      |                                      ;
answer.code:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |     scanf("%d",&n);
      |     ~~~~~^~~~~~~~~
answer.code:10:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |             scanf("%1d",&s[i][j]);
      |             ~~~~~^~~~~~~~~~~~~~~~