| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 165421 | 江俊逸 | 08打车费用 | C++ | Compile Error | 0 MS | 0 KB | 461 | 2026-11-15 14:04:58 |
#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 m; double s s=0; if(m>10){ s=6+(10-2)*1.8+(m-10)*1.8*1.5; } else{ if(m>2){ s=6+(m-2)*1.8; } else{ s=6; } } return 0; }
Main.cc: In function 'int main()':
Main.cc:10:5: error: expected initializer before 's'
s=0;
^
Main.cc:12:5: error: 's' was not declared in this scope
s=6+(10-2)*1.8+(m-10)*1.8*1.5;
^
Main.cc:16:9: error: 's' was not declared in this scope
s=6+(m-2)*1.8;
^
Main.cc:19:9: error: 's' was not declared in this scope
s=6;
^