Compile Error
foo.c:5:9: fatal error: bits/stdc++.h: No such file or directory 5 | #include<bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
Code
/**
* author: pollob18
* created: July 2024
**/
#include<bits/stdc++.h>
#define ll long long int
#define yes "YES"
#define no "NO"
#define nl "\n"
using namespace std;
void solution()
{
int a,b,c;
cin>>a>>b>>c;
int mx=max({a,b,c});
int mn=min({a,b,c});
int x=mx-mn;
cout<<x/2<<nl;
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int tc;
cin>>tc;
while(tc--)
{
solution();
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1061 Bring equality
- Contest
- Brain Booster #4
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-07-14 15:46:57
- Judged At
- 2024-11-11 03:25:27
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes