0_0_30060494_16389.cpp:2:17: error: 'st' is not a namespace-name
using namespace st;
^
0_0_30060494_16389.cpp:2:19: error: expected namespace-name before ';' token
using namespace st;
^
0_0_30060494_16389.cpp:6:2: error: 'frinde' does not name a type
frinde bool operator<(node n1,node n2){
^
0_0_30060494_16389.cpp: In function 'int main()':
0_0_30060494_16389.cpp:18:8: error: 'cin' was not declared in this scope
while(cin>>n){
^
0_0_30060494_16389.cpp:18:8: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_30060494_16389.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_30060494_16389.cpp:19:3: error: 'priority_queue' was not declared in this scope
priority_queue<node>a;
^
0_0_30060494_16389.cpp:19:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:85,
from 0_0_30060494_16389.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:370:11: note: 'std::priority_queue'
class priority_queue
^
0_0_30060494_16389.cpp:19:22: error: expected primary-expression before '>' token
priority_queue<node>a;
^
0_0_30060494_16389.cpp:19:23: error: 'a' was not declared in this scope
priority_queue<node>a;
^
0_0_30060494_16389.cpp:20:22: error: expected primary-expression before '>' token
priority_queue<node>b;
^
0_0_30060494_16389.cpp:20:23: error: 'b' was not declared in this scope
priority_queue<node>b;
^
0_0_30060494_16389.cpp:21:22: error: expected primary-expression before '>' token
priority_queue<node>c;
^
0_0_30060494_16389.cpp:21:23: error: 'c' was not declared in this scope
priority_queue<node>c;
^
0_0_30060494_16389.cpp:24:14: error: redeclaration of 'char str [10]'
char str[10];
^
0_0_30060494_16389.cpp:22:8: note: 'char str [10]' previously declared here
char str[10];
^
0_0_30060494_16389.cpp:28:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(str[0]=="I"){
^
0_0_30060494_16389.cpp:83:1: error: expected '}' at end of input
}
^
|