Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
165273 江俊逸 08打车费用 C++ Compile Error 0 MS 0 KB 315 2026-11-14 14:23:01

Tests(0/0):


Code:

#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; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:5: error: expected initializer before 's'
     s==0;
     ^
Main.cc:8:5: error: 's' was not declared in this scope
     s==6+(10-2)*1.8+(m-10)*1.8*1.5;
     ^
Main.cc:12:9: error: 's' was not declared in this scope
         s==6+(m-2)*1.8;
         ^
Main.cc:15:9: error: 's' was not declared in this scope
         s==6;
         ^