#include <stdio.h> //Для printf
#include <math.h> //Для round, roundf, roundl
int main (void)
{
//Вывод значения аргумента
//Расчет и вывод результата работы функции roundf
printf (“roundf
: %.1f\n”
, roundf
(2.83) ); //Расчет и вывод результата работы функции round
printf (“round
: %.1f\n”
, round
(2.83) ); //Расчет и вывод результата работы функции roundl
printf (“roundl
: %.1Lf\n”
, roundl
(2.83) );
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+ICAvL9CU0LvRjyBwcmludGYKI2luY2x1ZGUgPG1hdGguaD4gICAvL9CU0LvRjyByb3VuZCwgcm91bmRmLCByb3VuZGwKCmludCBtYWluICh2b2lkKQp7ICAgIAogICAvL9CS0YvQstC+0LQg0LfQvdCw0YfQtdC90LjRjyDQsNGA0LPRg9C80LXQvdGC0LAKICAgcHJpbnRmICjigJzQkNGA0LPRg9C80LXQvdGCOiAyLjgzXG7igJ0pOwogICAvL9Cg0LDRgdGH0LXRgiDQuCDQstGL0LLQvtC0INGA0LXQt9GD0LvRjNGC0LDRgtCwINGA0LDQsdC+0YLRiyDRhNGD0L3QutGG0LjQuCByb3VuZGYKICAgcHJpbnRmICjigJxyb3VuZGYgOiAlLjFmXG7igJ0sIHJvdW5kZiAoMi44MykgKTsKICAgLy/QoNCw0YHRh9C10YIg0Lgg0LLRi9Cy0L7QtCDRgNC10LfRg9C70YzRgtCw0YLQsCDRgNCw0LHQvtGC0Ysg0YTRg9C90LrRhtC40Lggcm91bmQKICAgcHJpbnRmICjigJxyb3VuZCA6ICUuMWZcbuKAnSwgcm91bmQgKDIuODMpICk7CiAgIC8v0KDQsNGB0YfQtdGCINC4INCy0YvQstC+0LQg0YDQtdC30YPQu9GM0YLQsNGC0LAg0YDQsNCx0L7RgtGLINGE0YPQvdC60YbQuNC4IHJvdW5kbAogICBwcmludGYgKOKAnHJvdW5kbCA6ICUuMUxmXG7igJ0sIHJvdW5kbCAoMi44MykgKTsKCiAgIHJldHVybiAwOwp9
prog.c: In function ‘main’:
prog.c:7:12: error: stray ‘\342’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:13: error: stray ‘\200’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:14: error: stray ‘\234’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:15: error: stray ‘\320’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:16: error: stray ‘\220’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:17: error: stray ‘\321’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:18: error: stray ‘\200’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:19: error: stray ‘\320’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:20: error: stray ‘\263’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:21: error: stray ‘\321’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:22: error: stray ‘\203’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:23: error: stray ‘\320’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:24: error: stray ‘\274’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:25: error: stray ‘\320’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:26: error: stray ‘\265’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:27: error: stray ‘\320’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:28: error: stray ‘\275’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:29: error: stray ‘\321’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:30: error: stray ‘\202’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:31: error: expected expression before ‘:’ token
printf (“Аргумент: 2.83\n”);
^
prog.c:7:37: error: stray ‘\’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:39: error: stray ‘\342’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:40: error: stray ‘\200’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:7:41: error: stray ‘\235’ in program
printf (“Аргумент: 2.83\n”);
^
prog.c:9:12: error: stray ‘\342’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:13: error: stray ‘\200’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:14: error: stray ‘\234’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:22: error: expected ‘)’ before ‘:’ token
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:28: error: stray ‘\’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:30: error: stray ‘\342’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:31: error: stray ‘\200’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:32: error: stray ‘\235’ in program
printf (“roundf : %.1f\n”, roundf (2.83) );
^
prog.c:9:15: warning: passing argument 1 of ‘printf’ from incompatible pointer type [-Wincompatible-pointer-types]
printf (“roundf : %.1f\n”, roundf (2.83) );
^~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘__attribute__((const)) float (*)(float)’
extern int printf (const char *__restrict __format, ...);
^~~~~~
prog.c:11:12: error: stray ‘\342’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:13: error: stray ‘\200’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:14: error: stray ‘\234’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:21: error: expected ‘)’ before ‘:’ token
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:27: error: stray ‘\’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:29: error: stray ‘\342’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:30: error: stray ‘\200’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:31: error: stray ‘\235’ in program
printf (“round : %.1f\n”, round (2.83) );
^
prog.c:11:15: warning: passing argument 1 of ‘printf’ from incompatible pointer type [-Wincompatible-pointer-types]
printf (“round : %.1f\n”, round (2.83) );
^~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘__attribute__((const)) double (*)(double)’
extern int printf (const char *__restrict __format, ...);
^~~~~~
prog.c:13:12: error: stray ‘\342’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:13: error: stray ‘\200’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:14: error: stray ‘\234’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:22: error: expected ‘)’ before ‘:’ token
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:25: error: invalid suffix "Lf" on floating constant
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^~~~
prog.c:13:29: error: stray ‘\’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:31: error: stray ‘\342’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:32: error: stray ‘\200’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:33: error: stray ‘\235’ in program
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^
prog.c:13:15: warning: passing argument 1 of ‘printf’ from incompatible pointer type [-Wincompatible-pointer-types]
printf (“roundl : %.1Lf\n”, roundl (2.83) );
^~~~~~
In file included from prog.c:1:0:
/usr/include/stdio.h:364:12: note: expected ‘const char * restrict’ but argument is of type ‘__attribute__((const)) long double (*)(long double)’
extern int printf (const char *__restrict __format, ...);
^~~~~~