| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159504 | 解禾溪 | 09优惠活动 | C++ | Compile Error | 0 MS | 0 KB | 862 | 2026-09-04 19:25:14 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,P,G,S; cin>>bzc#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,P,G,S; cin>>a>>b; if(b=P){ cout<<a<<a*0.7; } else if(b=G){ cout<<a<<a*0.8; } int a,b,P,G,S; cin<<a<<b; if(b==P){ cout<<a<<a*0.7; } else if(b==G){ cout<<a<<a*0.8; } else if(b==S){ cout<<a<<a*0.9; } else{ cout<<a<<a*0.95; } return 0; }
Main.cc:9:13: error: stray '#' in program
cin>>bzc#include // cin\cout\endl
^
Main.cc: In function 'int main()':
Main.cc:9:10: error: 'bzc' was not declared in this scope
cin>>bzc#include // cin\cout\endl
^
Main.cc:15:11: error: a function-definition is not allowed here before '{' token
int main(){
^
Main.cc:8:9: warning: unused variable 'a' [-Wunused-variable]
int a,b,P,G,S;
^
Main.cc:8:11: warning: unused variable 'b' [-Wunused-variable]
int a,b,P,G,S;
^
Main.cc:8:13: warning: unused variable 'P' [-Wunused-variable]
int a,b,P,G,S;
^
Main.cc:8:15: warning: unused variable 'G' [-Wunused-variable]
int a,b,P,G,S;
^
Main.cc:8:17: warning: unused variable 'S' [-Wunused-variable]
int a,b,P,G,S;
^
Main.cc:39:1: error: expected '}' at end of input
}
^