Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71424 杨珞烯 08打车费用 C++ Compile Error 0 MS 0 KB 506 2024-04-23 20:11:05

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { double a,b=0; cin>>a>>b; if(a<=2){ b=6; } if(a>2&&a<=10){ b=6+1.8*(a-2); } #include <iostream> using namespace std; int main() { double a,b=0; cin>>a>>b; if(a<=2){ b=6; } if(a>2&&a<=10){ b=6+1.8*(a-2); } if(a>10){ b=6+14.4+(a-10)*2.7; } cout<<b; return 0; } if(a>10){ b=6+14.4+(a-12)*2.7; } cout<<b; return 0; }


Run Info:

Main.cc:11:8: error: stray '#' in program
      } #include 
        ^
Main.cc: In function 'int main()':
Main.cc:11:9: error: 'include' was not declared in this scope
      } #include 
         ^
Main.cc:11:26: error: expected primary-expression before '>' token
      } #include 
                          ^
Main.cc:12:1: error: expected primary-expression before 'using'
 using namespace std;
 ^
Main.cc:13:12: error: a function-definition is not allowed here before '{' token
 int main() {
            ^
Main.cc:33:1: error: expected '}' at end of input
 }
 ^