0
#include <stdio.h>
int main()
{
    int a = 10, b = 15, c;
    c = a + b;
    printf("%d", c);

    return 0;
}

Whenever I tried to compile it produce error

gcc.exe: error: instruction: No such file or directory
gcc.exe: error: Arthematic: No such file or directory   
gcc.exe: error: declearation: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.

Error code image

dreamcrash
  • 47,137
  • 25
  • 94
  • 117
Mahesh Kumar
  • 7
  • 1
  • 3
  • 1
    gcc is trying to compile file with whitespaces. Please rename your file (e.g. change whitespaces with underscores) and try again – sigsuspend Dec 31 '20 at 16:47
  • 1
    You may want to see [this](https://stackoverflow.com/questions/18537098/spaces-cause-split-in-path-with-powershell) – srilakshmikanthanp Dec 31 '20 at 16:54

2 Answers2

4

Your shell command is malformed. You used

gcc instruction Arthematic declearation.c -o instruction Arthematic declearation

when you should have used

gcc "instruction Arthematic declearation.c" -o "instruction Arthematic declearation"
ikegami
  • 367,544
  • 15
  • 269
  • 518
1

Try to avoid using spaces in your file or directory name. If any of it contains spaces, than you should put it between "" marks.

Geri Papp
  • 28
  • 8