Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

gcc 7.3.0

Options
Warnings
Boost 1.69.0
C++17(GNU)
no pedantic
Raw compiler options
fort.c

Author

anonymous

over 5 years ago

fort.h
fort.c
fort.hpp

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-7.3.0/include -std=gnu++17 fort.c
+---+------------+----------+-----------+
| N | Driver     | Time     | Avg Speed |
+---+------------+----------+-----------+
| 1 | Ricciardo  | 1:25.945 | 222.128   |
| 2 | Hamilton   | 1:26.373 | 221.027   |
| 3 | Verstappen | 1:26.469 | 220.782   |
+---+------------+----------+-----------+

╔═══╦════════════╦══════════╦══════════╗
║ N ║ Гонщик     ║ Время    ║ Скорость ║
╠═══╬════════════╬══════════╬══════════╣
║ 1 ║ Ricciardo  ║ 1:25.945 ║ 47.362   ║
║ 2 ║ Hamilton   ║ 1:26.373 ║ 35.02    ║
║ 3 ║ Verstappen ║ 1:26.469 ║ 29.78    ║
╚═══╩════════════╩══════════╩══════════╝

Exit Code:
0