bubblesort.cpp:5:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
bubblesort.cpp: In function ‘int main()’:
bubblesort.cpp:15:33: error: expected initializer before ‘t’
std::multiset<int>iterator t=S.begin();
^
bubblesort.cpp:16:20: error: ‘t’ was not declared in this scope
printf("%d ",*t);
^
bubblesort.cpp:7:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
bubblesort.cpp:10:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x[i]);
^