Shower water problem


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);


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


expecting something else


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.