Tiesės

Taškai: 95.2

Compile: OK

tieses.cpp: In function ‘point operator-(const point&, const point&)’: tieses.cpp:82:21: warning: narrowing conversion of ‘(((int)pir.point::first) - ((int)ant.point::first))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{pir.x - ant.x, pir.y - ant.y, pir.z - ant.z}; ^ tieses.cpp:82:36: warning: narrowing conversion of ‘(((int)pir.point::second) - ((int)ant.point::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{pir.x - ant.x, pir.y - ant.y, pir.z - ant.z}; ^ tieses.cpp:82:51: warning: narrowing conversion of ‘(((int)pir.point::z) - ((int)ant.point::z))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{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:21: warning: narrowing conversion of ‘(((int)pir.point::first) + ((int)ant.point::first))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp:86:36: warning: narrowing conversion of ‘(((int)pir.point::second) + ((int)ant.point::second))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp:86:51: warning: narrowing conversion of ‘(((int)pir.point::z) + ((int)ant.point::z))’ from ‘int’ to ‘short int’ inside { } [-Wnarrowing] return point{pir.x + ant.x, pir.y + ant.y, pir.z + ant.z}; ^ tieses.cpp: In function ‘int main()’: tieses.cpp:105: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:106: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.004 sok
5True0.004 sok
6True0.012 sok
7True0.028 sok
8True0.044 sok
9True0.048 sok
10True0.12 sok
11True0.216 sok
12True0.272 sok
13True0.36 sok
14True0.28 sok
15True0.364 sok
16True0.464 sok
17True0.576 sok
18True0.576 sok
19True0.632 sok
20True0.588 sok
21False0.692 sCaught fatal signal 11