Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
89856 蔡佳轩 08比较三个数的大小 C++ Compile Error 0 MS 0 KB 224 2024-09-07 11:07:35

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if (a>b && a>c){ cout<<a; } elif (b>a && b>c){ cout<<b; } else{ cout<<c; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:21: error: 'elif' was not declared in this scope
     elif (b>a && b>c){
                     ^
Main.cc:12:5: error: 'else' without a previous 'if'
     else{
     ^