0_0_24730520_20592.cpp:4:16: error: expected identifier before ';' token
using namespace;
^
0_0_24730520_20592.cpp: In function 'void prim()':
0_0_24730520_20592.cpp:12:28: error: 'memset' was not declared in this scope
memset(used,0,sizeof(used));
^
0_0_24730520_20592.cpp:13:17: error: 'INF' was not declared in this scope
memset(mincost,INF,sizeof(mincost));
^
0_0_24730520_20592.cpp:19:17: error: 'V' was not declared in this scope
for(int u=0;u<V;u++)
^
0_0_24730520_20592.cpp:26:16: error: 'V' was not declared in this scope
for(int u=0;u<V;u++)
^
0_0_24730520_20592.cpp:27:29: error: 'A' was not declared in this scope
mincost[u]=min(mincost[u],A[v][u]);
^
0_0_24730520_20592.cpp:27:36: error: 'min' was not declared in this scope
mincost[u]=min(mincost[u],A[v][u]);
^
0_0_24730520_20592.cpp:27:36: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_24730520_20592.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:240:5: note: 'std::min'
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
0_0_24730520_20592.cpp:29:2: error: 'cin' was not declared in this scope
cin<<res<<endl;
^
0_0_24730520_20592.cpp:29:2: note: suggested alternative:
In file included from 0_0_24730520_20592.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_24730520_20592.cpp:29:12: error: 'endl' was not declared in this scope
cin<<res<<endl;
^
0_0_24730520_20592.cpp:29:12: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
from 0_0_24730520_20592.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
0_0_24730520_20592.cpp: In function 'int main()':
0_0_24730520_20592.cpp:34:2: error: 'vector' was not declared in this scope
vector<vector<int>>A(n,vector<int>(N));
^
0_0_24730520_20592.cpp:34:2: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from 0_0_24730520_20592.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_24730520_20592.cpp:34:16: error: expected primary-expression before 'int'
vector<vector<int>>A(n,vector<int>(N));
^
0_0_24730520_20592.cpp:35:9: error: 'A' was not declared in this scope
memset(A,INF,sizeof(A));
^
0_0_24730520_20592.cpp:35:11: error: 'INF' was not declared in this scope
memset(A,INF,sizeof(A));
^
0_0_24730520_20592.cpp:35:24: error: 'memset' was not declared in this scope
memset(A,INF,sizeof(A));
^
0_0_24730520_20592.cpp:36:19: error: 'n' was not declared in this scope
for(int a=1;a<=(n*(n-1)/2);a++)
^
0_0_24730520_20592.cpp:37:4: error: 'cin' was not declared in this scope
cin>>i>>j>>A[i][j];
^
0_0_24730520_20592.cpp:37:4: note: suggested alternative:
In file included from 0_0_24730520_20592.cpp:1:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
|