Keksiukai

Taškai: 30

Compile: OK

keksiukai.cpp: In function ‘int main()’: keksiukai.cpp:10:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] #define s2(a, b) scanf("%d %d", &a, &b); ^ keksiukai.cpp:22:5: note: in expansion of macro ‘s2’ s2(n, s); ^ keksiukai.cpp:10:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] #define s2(a, b) scanf("%d %d", &a, &b); ^ keksiukai.cpp:22:5: note: in expansion of macro ‘s2’ s2(n, s); ^ keksiukai.cpp:10:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] #define s2(a, b) scanf("%d %d", &a, &b); ^ keksiukai.cpp:25:9: note: in expansion of macro ‘s2’ s2(sweets[i].sweet, sweets[i].sour); ^

nr.resulttimemessage
1True0.0 sok
2False0.068 sNeteisinga eilutė
3True0.0 sok
4True0.0 sok
5False0.0 sNeteisinga eilutė
6False0.076 sNeteisinga eilutė
7False0.096 sNeteisinga eilutė
8False0.168 sNeteisinga eilutė
9False0.124 sNeteisinga eilutė
10False0.116 sNeteisinga eilutė