🎄T
Size: a a a
🎄T
ЕЛ
🎄T
cpp_clang
#include <iostream>
#include <string>
int main() {
try{
int *a = 0;
*a = 10;
}catch(...) {
std::cout << "нихуя не работает";
}
}
Illegal instruction (SIGILL)
🎄T
cpp_clang
#include <iostream>
#include <string>
int main() {
try{
int *a = 0;
*a = 10;
}catch(...) {
std::cout << "нихуя не работает";
}
}
Illegal instruction (SIGILL)
T
N
🎄T
cpp_clang
#include <iostream>
#include <string>
void bar() {
int x;
std::cout << x << std::endl;
}
int * foo() {
int x = 10;
return &x;
}
int main() {
int * t = foo();
std::cout << t;
}
source_file.cpp:6:15: warning: variable 'x' is uninitialized when used here [-Wuninitialized]
std::cout << x << std::endl;
^
source_file.cpp:5:7: note: initialize the variable 'x' to silence this warning
int x;
^
= 0
source_file.cpp:11:10: warning: address of stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
return &x;
^
2 warnings generated.
0x7ffe8ef5b5b4
🎄T
cpp_clang
#include <iostream>
#include <string>
void bar() {
int x;
std::cout << x << std::endl;
}
int * foo() {
int x = 10;
return &x;
}
int main() {
int * t = foo();
std::cout << t;
}
source_file.cpp:6:15: warning: variable 'x' is uninitialized when used here [-Wuninitialized]
std::cout << x << std::endl;
^
source_file.cpp:5:7: note: initialize the variable 'x' to silence this warning
int x;
^
= 0
source_file.cpp:11:10: warning: address of stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
return &x;
^
2 warnings generated.
0x7ffe8ef5b5b4
N
cpp_clang
#include <iostream>
#include <string>
void bar() {
int x;
std::cout << x << std::endl;
}
int * foo() {
int x = 10;
return &x;
}
int main() {
int * t = foo();
std::cout << t;
}
source_file.cpp:6:15: warning: variable 'x' is uninitialized when used here [-Wuninitialized]
std::cout << x << std::endl;
^
source_file.cpp:5:7: note: initialize the variable 'x' to silence this warning
int x;
^
= 0
source_file.cpp:11:10: warning: address of stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
return &x;
^
2 warnings generated.
0x7ffe8ef5b5b4
🎄T
cpp_clang
#include <iostream>
#include <string>
int & foo() {
int x = 10;
return x;
}
int main() {
int & t = foo();
std::cout << &t;
}
source_file.cpp:6:9: warning: reference to stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
return x;
^
1 warning generated.
0x7ffd193d7294
T
🎄T
cpp_clang
#include <iostream>
#include <string>
int & foo() {
int x = 10;
return x;
}
int main() {
int & t = foo();
std::cout << &t;
}
source_file.cpp:6:9: warning: reference to stack memory associated with local variable 'x' returned [-Wreturn-stack-address]
return x;
^
1 warning generated.
0x7ffd193d7294
N
T
T
T
F
cpp_clang
#include <iostream>
#include <string>
int main() {
try{
int *a = 0;
*a = 10;
}catch(...) {
std::cout << "нихуя не работает";
}
}
Illegal instruction (SIGILL)
N
T