Most active questions
5 questions from the last 30 days
0
votes
1
answer
34
views
CS50P "Lines of code"
Assignment: "file called lines.py, implement a program that expects exactly one command-line argument, the name (or path) of a Python file, and outputs the number of lines of code in that file, ...
0
votes
1
answer
14
views
cs50p lines.py not passing the last 3 tests
from sys import argv,exit
def main():
try:
if len(argv) < 2:
exit("Too few command-line arguments")
elif len(argv) > 2:
exit("Too many ...
0
votes
1
answer
10
views
"Correct numb3rs.py passes all tests" not checked in the check50: numb3rs.py cs50
I am implementing the code for IPv4numb3rs problem. The code works as expected and the test code too but I don't get why the the "correct nub3rs.py passes all test_numb3rs.py check" isn't ...
0
votes
0
answers
12
views
i have an error in debug50
When i try to debugging my code with debug50 it gives me this message even though it compiled (The preLaunchTask 'C/C++: gcc build active file' terminated with exit code -1.) + it happens in some ...
0
votes
1
answer
4
views
mario more in c - help!
Down below my code. I'm able to print the left part of the pyramid but the right part doesn't come up. What do I do wrong?
#include <stdio.h>
#include <cs50.h>
#include <stdio.h>
#...