Šaulys 2

Taškai: 0

Compile: OK

saul2.cpp: In function ‘int main()’: saul2.cpp:60:15: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d", q); ^ saul2.cpp:64:22: warning: format ‘%c’ expects argument of type ‘char*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%c", c); ^ saul2.cpp:67:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d", x, y); ^ saul2.cpp:67:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] saul2.cpp:71:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d %d %d", x1, x2, y1, y2); ^ saul2.cpp:71:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] saul2.cpp:71:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] saul2.cpp:71:48: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘int’ [-Wformat=] saul2.cpp:60:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", q); ^ saul2.cpp:64:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", c); ^ saul2.cpp:67:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", x, y); ^ saul2.cpp:71:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", x1, x2, y1, y2); ^

nr.resulttimemessage
1False0.0 sCaught fatal signal 11
2False0.0 sCaught fatal signal 11
3False0.0 sCaught fatal signal 11
4False0.0 sCaught fatal signal 11
5False0.0 sCaught fatal signal 11
6False0.0 sCaught fatal signal 11
7False0.0 sCaught fatal signal 11