Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
-fno-elide-constructors
#include <iostream> using namespace std; class Foo { public: Foo(){} Foo(int* ptr){cout<<"copy int*"<<endl;} Foo(const Foo& f){cout<<"copy"<<endl;} }; void Set(const Foo){cout<<"Set"<<endl;} void SetC(const Foo&){cout<<"SetC"<<endl;} int main() { Set(Foo(new int)); SetC(new int); // your code goes here return 0; }
run
|
edit
|
history
|
help
0
Discounting Future Stream
LP
Dar
Maximum product subarray
5
Microsoft - MaxEmployeeAttendence (R repititions - DP solution bitmask)
binary
Segment Tree
Bitwise - Check power of 2 or not
Bin Tree playground