Šaulys 2
- [1] 2018-07-17 20:42 (85.7)
- [2] 2018-07-17 20:43 (85.7)
- [3] 2018-07-17 20:47 (0)
- [4] 2018-07-17 20:48 (0)
- [5] 2018-07-17 20:49 (100)
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. | result | time | message |
---|---|---|---|
1 | False | 0.0 s | Caught fatal signal 11 |
2 | False | 0.0 s | Caught fatal signal 11 |
3 | False | 0.0 s | Caught fatal signal 11 |
4 | False | 0.0 s | Caught fatal signal 11 |
5 | False | 0.0 s | Caught fatal signal 11 |
6 | False | 0.0 s | Caught fatal signal 11 |
7 | False | 0.0 s | Caught fatal signal 11 |