Tiesės

Taškai: 95.2

Compile: OK

tieses.cpp: In function ‘point operator-(const point&, const point&)’: tieses.cpp:81:24: warning: narrowing conversion of ‘(((int)pir.point::first) - ((int)ant.point::first))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x - ant.x, pir.y - ant.y, pir.z - ant.z}; ^ tieses.cpp:81:39: warning: narrowing conversion of ‘(((int)pir.point::second) - ((int)ant.point::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x - ant.x, pir.y - ant.y, pir.z - ant.z}; ^ tieses.cpp:81:54: warning: narrowing conversion of ‘(((int)pir.point::z) - ((int)ant.point::z))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x - ant.x, pir.y - ant.y, pir.z - ant.z}; ^ tieses.cpp: In function ‘point operator+(const point&, const point&)’: tieses.cpp:86:24: warning: narrowing conversion of ‘(((int)pir.point::first) + ((int)ant.point::first))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp:86:39: warning: narrowing conversion of ‘(((int)pir.point::second) + ((int)ant.point::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp:86:54: warning: narrowing conversion of ‘(((int)pir.point::z) + ((int)ant.point::z))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] point naujas = {pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp: In function ‘int main()’: tieses.cpp:118:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tieses.in", "r", stdin); ^ tieses.cpp:119:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tieses.out", "w", stdout); ^

nr.resulttimemessage
1True0.0 sok
2True0.0 sok
3True0.0 sok
4True0.0 sok
5True0.0 sok
6True0.004 sok
7True0.012 sok
8True0.032 sok
9True0.04 sok
10True0.104 sok
11True0.208 sok
12True0.268 sok
13True0.264 sok
14True0.296 sok
15True0.416 sok
16True0.412 sok
17True0.504 sok
18True0.544 sok
19True0.628 sok
20True0.712 sok
21False0.576 sCaught fatal signal 11