Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
144864 c13 07切比雪夫距离 C++ Compile Error 0 MS 0 KB 164 2026-01-24 19:18:41

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int t,n; scanf("%d %d %d %d", &t,&a,&b,&n); cout<<max(abs(t-b),abs(n-a))<<endl; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:30: error: 'a' was not declared in this scope
     scanf("%d %d %d %d", &t,&a,&b,&n);
                              ^
Main.cc:5:33: error: 'b' was not declared in this scope
     scanf("%d %d %d %d", &t,&a,&b,&n);
                                 ^