Submission #4151483
Source Code Expand
#include<cstdio> #include<cstring> using namespace std; char a[5000],b[5000],c[5000]; int main() { scanf("%s%s%s",a,b,c); if((find(a,"not")!=-1)&&(find(b,"not")!=-1)&&(strcmp(c,"not")!=0))printf("%s",c); if((strcmp(a,"not")!=0)&&(find(b,"not")!=-1)&&(find(c,"not")!=-1))printf("%s",a); if((find(a,"not")!=-1)&&(strcmp(b,"not")!=0)&&(find(c,"not")!=-1))printf("%s",b); if((find(a,"not")!=-1)&&(find(b,"not")!=-1)&&(find(c,"not")!=-1))printf("%s %s %s",a,b,c); if((strcmp(a,"not")!=0)&&(strcmp(b,"not")!=0)&&(strcmp(c,"not")!=0))printf("%s %s %s",a,b,c); if((strcmp(a,"not")!=0)&&(find(b,"not")!=-1)&&(strcmp(c,"not")!=0))printf("%s %s %s",a,b,c); if((strcmp(a,"not")!=0)&&(strcmp(b,"not")!=0)&&(find(c,"not")!=-1))printf("%s %s %s",a,b,c); if((find(a,"not")!=-1)&&(strcmp(b,"not")!=0)&&(strcmp(c,"not")!=0))printf("%s %s %s",a,b,c); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 二重否定除去法則 |
User | luogu_bot1 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 901 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:21: error: ‘find’ was not declared in this scope if((find(a,"not")!=-1)&&(find(b,"not")!=-1)&&(strcmp(c,"not")!=0))printf("%s",c); ^ ./Main.cpp:9:43: error: ‘find’ was not declared in this scope if((strcmp(a,"not")!=0)&&(find(b,"not")!=-1)&&(find(c,"not")!=-1))printf("%s",a); ^ ./Main.cpp:10:21: error: ‘find’ was not declared in this scope if((find(a,"not")!=-1)&&(strcmp(b,"not")!=0)&&(find(c,"not")!=-1))printf("%s",b); ^ ./Main.cpp:11:21: error: ‘find’ was not declared in this scope if((find(a,"not")!=-1)&&(find(b,"not")!=-1)&&(find(c,"not")!=-1))printf("%s %s %s",a,b,c); ^ ./Main.cpp:13:43: error: ‘find’ was not declared in this scope if((strcmp(a,"not")!=0)&&(find(b,"not")!=-1)&&(strcmp(c,"not")!=0))printf("%s %s %s",a,b,c); ^ ./Main.cpp:14:65: error: ‘find’ was not declared in th...