Language: C++

#inlcude<bits/stdc++.h>
using namespace std;
int n,m;
vector<pair<int,int> > v[100005];
bool vis[100005];
int num[100005];
bool dfs(int x,int fill)
{
	if(vis[x]) return num[x]==fill;
	vis[x]=true;
	num[x]=fill;
	for(int i=0;i<v[x].size();i++){
		pair<int,int> y=v[x][i];
		if(!dfs(y.first,num[x]+y.second)) return false;
	}
	return true;
}
int main()
{
	cin>>n>>m;
	for(int i=0;i<m;i++)
	{
		int l,r,d;
		cin>>l>>r>>d;
		v[l].push_back(make_pair(r,d));
		v[r].push_back(make_pair(l,-d));
	}
	for(int i=1;i<=n;i++) if(!vis[i]) if(!dfs(i,0)) {cout<<"No"<<endl;return 0;}
	cout<<"Yes"<<endl;
	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:4:1: error: 'vector' does not name a type
    4 | vector<pair<int,int> > v[100005];
      | ^~~~~~
a.cc: In function 'bool dfs(int, int)':
a.cc:12:23: error: 'v' was not declared in this scope
   12 |         for(int i=0;i<v[x].size();i++){
      |                       ^
a.cc:13:17: error: 'pair' was not declared in this scope
   13 |                 pair<int,int> y=v[x][i];
      |                 ^~~~
a.cc:1:1: note: 'std::pair' is defined in header '<utility>'; this is probably fixable by adding '#include <utility>'
  +++ |+#include <utility>
    1 | #inlcude<bits/stdc++.h>
a.cc:13:22: error: expected primary-expression before 'int'
   13 |                 pair<int,int> y=v[x][i];
      |                      ^~~
a.cc:14:25: error: 'y' was not declared in this scope
   14 |                 if(!dfs(y.first,num[x]+y.second)) return false;
      |                         ^
a.cc: In function 'int main()':
a.cc:20:9: error: 'cin' was not declared in this scope
   20 |         cin>>n>>m;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:25:17: error: 'v' was not declared in this scope
   25 |                 v[l].push_back(make_pair(r,d));
      |                 ^
a.cc:25:32: error: 'make_pair' was not declared in this scope
   25 |                 v[l].push_back(make_pair(r,d));
      |                                ^~~~~~~~~
a.cc:25:32: note: 'std::make_pair' is defined in header '<utility>'; this is probably fixable by adding '#include <utility>'
a.cc:28:58: error: 'cout' was not declared in this scope
   28 |         for(int i=1;i<=n;i++) if(!vis[i]) if(!dfs(i,0)) {cout<<"No"<<endl;return 0;}
      |                                                          ^~~~
a.cc:28:58: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:28:70: error: 'endl' was not declared in this scope
   28 |         for(int i=1;i<=n;i++) if(!vis[i]) if(!dfs(i,0)) {cout<<"No"<<endl;return 0;}
      |                                                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:29:9: error: 'cout' was not declared in this scope
   29 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:29:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:29:22: error: 'endl' was not declared in this scope
   29 |         cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:29:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'