Compile Error
foo.cc: In function 'void solve()': foo.cc:9:16: error: expected ';' before 'cout' 9 | cin >> a>>b | ^ | ; 10 | cout<< abs(a-b) <<endl; | ~~~~
Code
#include<bits/stdc++.h>
using namespace std;
#define ll long long
void solve(){
ll a,b;
cin >> a>>b
cout<< abs(a-b) <<endl;
}
int main(){
ll t;
// cin >> t;
while(t--){
solve();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1226 Event Registration
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-09-01 05:17:31
- Judged At
- 2025-09-01 05:17:31
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes