Tiesės

Taškai: 4.8

Compile: OK

tieses.cpp: In function ‘int main()’: tieses.cpp:48:69: warning: format ‘%f’ expects argument of type ‘float*’, but argument 2 has type ‘double*’ [-Wformat=] for(int i=0; i<n; i++) scanf(" %f %f %f", &p[i].x, &p[i].y, &p[i].z); ^ tieses.cpp:48:69: warning: format ‘%f’ expects argument of type ‘float*’, but argument 3 has type ‘double*’ [-Wformat=] tieses.cpp:48:69: warning: format ‘%f’ expects argument of type ‘float*’, but argument 4 has type ‘double*’ [-Wformat=] tieses.cpp:46:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d", &n); ^ tieses.cpp:48:70: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=0; i<n; i++) scanf(" %f %f %f", &p[i].x, &p[i].y, &p[i].z); ^

nr.resulttimemessage
1True0.0 sok
2False0.0 sNeteisinga eilutė
3False0.0 sNeteisinga eilutė
4False0.0 sNeteisinga eilutė
5False0.0 sNeteisinga eilutė
6False0.0 sNeteisinga eilutė
7False0.004 sNeteisinga eilutė
8False0.004 sNeteisinga eilutė
9False0.004 sNeteisinga eilutė
10False0.008 sNeteisinga eilutė
11False0.016 sNeteisinga eilutė
12False0.028 sNeteisinga eilutė
13False0.032 sNeteisinga eilutė
14False0.02 sNeteisinga eilutė
15False0.044 sNeteisinga eilutė
16False0.036 sNeteisinga eilutė
17False0.056 sNeteisinga eilutė
18False0.056 sNeteisinga eilutė
19False0.04 sNeteisinga eilutė
20False0.036 sNeteisinga eilutė
21False0.036 sNeteisinga eilutė