elsys / c-programming-homework

Homework assignments and students submissions
MIT License
8 stars 147 forks source link

Create 04_task.c #1017

Closed SimonaV23 closed 7 years ago

elsysbot commented 7 years ago

Assignment report

Points earned: 0
Maximum points: 20

Task 1: Reverse it [0/5 points]

Reverse array of numbers

Not submitted

Task 2: Read the odds [0/5 points]

Read only odds number

Not submitted

Task 3: Frequency [0/5 points]

Not submitted

Task 4: R&D [0/5 points]

Read and Devide

Testcase 1 failed

elsysbot commented 7 years ago

Not fully correct. Fix your tasks and submit them.

elsysbot commented 7 years ago

Assignment report

Points earned: 0
Maximum points: 20

Task 1: Reverse it [0/5 points]

Reverse array of numbers

Not submitted

Task 2: Read the odds [0/5 points]

Read only odds number

Not submitted

Task 3: Frequency [0/5 points]

Not submitted

Task 4: R&D [0/5 points]

Read and Devide

Failed compiling

Exit code: 1

Error

04_task.c: In function ‘main’:
04_task.c:10:5: warning: implicit declaration of function ‘whie’ [-Wimplicit-function-declaration]
     whie((scanf("%f",&num))!=EOF)
     ^
04_task.c:11:9: error: expected ‘;’ before ‘{’ token
         {
         ^
04_task.c:9:23: warning: unused variable ‘sum’ [-Wunused-variable]
     float a[1000],num,sum=0;
                       ^
04_task.c:9:11: warning: unused variable ‘a’ [-Wunused-variable]
     float a[1000],num,sum=0;
           ^
04_task.c:6:15: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
     int i,x,j,n;
               ^
04_task.c:6:13: warning: unused variable ‘j’ [-Wunused-variable]
     int i,x,j,n;
             ^
04_task.c:6:11: warning: unused variable ‘x’ [-Wunused-variable]
     int i,x,j,n;
           ^
04_task.c:6:9: warning: variable ‘i’ set but not used [-Wunused-but-set-variable]
     int i,x,j,n;
         ^
elsysbot commented 7 years ago

Not fully correct. Fix your tasks and submit them.