| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 65739 | 欧阳槊远 | 07切比雪夫距离 | C++ | Compile Error | 0 MS | 0 KB | 349 | 2024-02-07 18:30:58 |
# include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c.d; int n=0,z=0; scanf(%d%d%d%d,&a,&b,&c,&d; if(a>b){ n=a-b; }else{ n=b-a; } if(c>d){ z=c-d; }else{ z=d-c; } if(n>z){ cout<<n; }else{ cout<<z; return 0; }
Main.cc: In function 'int main()':
Main.cc:5:14: error: expected initializer before '.' token
int a,b,c.d;
^
Main.cc:7:11: error: expected primary-expression before '%' token
scanf(%d%d%d%d,&a,&b,&c,&d;
^
Main.cc:7:12: error: 'd' was not declared in this scope
scanf(%d%d%d%d,&a,&b,&c,&d;
^
Main.cc:7:27: error: 'c' was not declared in this scope
scanf(%d%d%d%d,&a,&b,&c,&d;
^
Main.cc:23:1: error: expected '}' at end of input
}
^