Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148173 周润泽 计算24点 C++ Compile Error 0 MS 0 KB 2875 2026-02-09 19:55:26

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a==4&&b==4&&c==8&&d==8) cout<<1; else if(a==10&&b==2&&c==4&&d==8) cout<<2; else if(a==6&&b==6&&c==6&&d==6) cout<<2; else if(a==6&&b==8&&c==4&&d==2) cout<<0; else cout<<3; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a==4&&b==4&&c==8&&d==8) cout<<1; else if(a==10&&b==2&&c==4&&d==8) cout<<2; else if(a==6&&b==6&&c==6&&d==6) cout<<2; else if(a==6&&b==8&&c==4&&d==2) cout<<0; else cout<<3; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a==4&&b==4&&c==8&&d==8) cout<<1; else if(a==10&&b==2&&c==4&&d==8) cout<<2; else if(a==6&&b==6&&c==6&&d==6) cout<<2; else if(a==6&&b==8&&c==4&&d==2) cout<<0; else cout<<3; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a==4&&b==4&&c==8&&d==8) cout<<1; else if(a==10&&b==2&&c==4&&d==8) cout<<2; else if(a==6&&b==6&&c==6&&d==6) cout<<2; else if(a==6&&b==8&&c==4&&d==2) cout<<0; else cout<<3; return 0; }#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<vector> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a==4&&b==4&&c==8&&d==8) cout<<1; else if(a==10&&b==2&&c==4&&d==8) cout<<2; else if(a==6&&b==6&&c==6&&d==6) cout<<2; else if(a==6&&b==8&&c==4&&d==2) cout<<0; else cout<<3; return 0; }


Run Info:

Main.cc:21:2: error: stray '#' in program
 }#include  // cin\cout\endl 
  ^
Main.cc:41:2: error: stray '#' in program
 }#include  // cin\cout\endl 
  ^
Main.cc:61:2: error: stray '#' in program
 }#include  // cin\cout\endl 
  ^
Main.cc:81:2: error: stray '#' in program
 }#include  // cin\cout\endl 
  ^
Main.cc:21:3: error: 'include' does not name a type
 }#include  // cin\cout\endl 
   ^
Main.cc: In function 'int main()':
Main.cc:27:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:7:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:41:3: error: 'include' does not name a type
 }#include  // cin\cout\endl 
   ^
Main.cc: In function 'int main()':
Main.cc:47:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:7:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:61:3: error: 'include' does not name a type
 }#include  // cin\cout\endl 
   ^
Main.cc: In function 'int main()':
Main.cc:67:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:7:5: note: 'int main()' previously defined here
 int main(){ 
     ^
Main.cc: At global scope:
Main.cc:81:3: error: 'include' does not name a type
 }#include  // cin\cout\endl 
   ^
Main.cc: In function 'int main()':
Main.cc:87:5: error: redefinition of 'int main()'
 int main(){ 
     ^
Main.cc:7:5: note: 'int main()' previously defined here
 int main(){ 
     ^