| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 122607 | 陈泊延 | 07切比雪夫距离 | C++ | Compile Error | 0 MS | 0 KB | 464 | 2025-06-21 11:28:10 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c>>d; if(a>b){ cout<<abs(a); } if{ cout<<abs(b); } if{ cout<<abs(c); if{ cout<<abs(d); } return 0; }
Main.cc: In function 'int main()':
Main.cc:13:7: error: expected '(' before '{' token
if{
^
Main.cc:16:8: error: expected '(' before '{' token
if{
^
Main.cc:22:1: error: expected '}' at end of input
}
^