You have to mount your drive to Google colab to see your file
from google.colab import drive
drive.mount('/gdrive')
# Get the current path of your colab machine
!pwd
# cd to the directory that has your file to run
Getting interactive bash on Google Colab
!bin/bash
Compiling a C file using gcc
# Check that you have gcc by returning the version
!gcc -v
# Compile and save into output binary
!gcc aaa.c -o output
# Run the binary
!./output
# It should print
Hello, World!