Skip to main content
added 2 characters in body
Source Link

CC++ 133 bytes

#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]){ printf("%s", variable); return 0; } 

Displays the error (132 bytes):

.code.tio.c: In function ‘main’: .code.tio.c:5:14: error: ‘variable’ undeclared (first use in this function) printf("%s", variable);

C 133 bytes

#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]){ printf("%s", variable); return 0; } 

Displays the error (132 bytes):

.code.tio.c: In function ‘main’: .code.tio.c:5:14: error: ‘variable’ undeclared (first use in this function) printf("%s", variable);

C++ 133 bytes

#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]){ printf("%s", variable); return 0; } 

Displays the error (132 bytes):

.code.tio.c: In function ‘main’: .code.tio.c:5:14: error: ‘variable’ undeclared (first use in this function) printf("%s", variable);

added 95 characters in body
Source Link

C 91133 bytes

#include <stdio.h><iostream> #include <stdlib.h><cstdlib> using namespace std; int main(voidint argc, char *argv[]){  printf("%s", variable);  return 0; } 

Displays the error (91132 bytes):

main.code.tio.c: In function ‘main’: .code.tio.c:5:1514: error: use of undeclared identifier 'variable'‘variable’ printfundeclared (first use in this function) printf("%s", variable);

C 91 bytes

#include <stdio.h> #include <stdlib.h> int main(void){ printf("%s", variable); return 0; } 

Displays the error (91 bytes):

main.c:5:15: error: use of undeclared identifier 'variable' printf("%s", variable);

C 133 bytes

#include <iostream> #include <cstdlib> using namespace std; int main(int argc, char *argv[]){  printf("%s", variable);  return 0; } 

Displays the error (132 bytes):

.code.tio.c: In function ‘main’: .code.tio.c:5:14: error: ‘variable’ undeclared (first use in this function) printf("%s", variable);

Source Link

C 91 bytes

#include <stdio.h> #include <stdlib.h> int main(void){ printf("%s", variable); return 0; } 

Displays the error (91 bytes):

main.c:5:15: error: use of undeclared identifier 'variable' printf("%s", variable);