Shower water problem


#1

The below code is giving me an error, im out of ideas

#include <stdio.h>
#include <cs50.h>
int main(void)
int n = GetInt();
bottles = n*12;
printf("bottles: %s\n", bottles);

#2

You never defined bottles, you also need opening and closing brackets for functions.
int main() { ... }

Found another thing, %s is for strings, you must use %d for ints


#3

expecting something else


#4

The fixes @vasilenko93 suggested should solve your issue. If they do not please post the error output you’re getting. You can also get CS50 help in the CS50 subreddit or the Facebook CS50 group.