Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89597 | 徐文杰 | 07切比雪夫距离 | C++ | Compile Error | 0 MS | 0 KB | 296 | 2024-08-25 15:22:30 |
#include<iostream> using namespace std; int main(){ int a,s,d,f,z,x; cin>>a>>s>>d>>f; if(a>s){ z=s-a; else{ z=a-s; } if(f>d){ x=d-f; else{ x=f-d; if(x>z){ cout<<z; } else{ cout<<x; } }
Main.cc: In function 'int main()': Main.cc:8:5: error: expected '}' before 'else' else{ ^ Main.cc:13:5: error: expected '}' before 'else' else{ ^ Main.cc:21:1: error: expected '}' at end of input } ^