Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 9.0.0 20181023 (experimental)

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic

$ g++ prog.cc -Wall -Wextra
prog.cc: In function 'int main()':
prog.cc:20:34: error: 'CLK_TCK' was not declared in this scope
   20 |   czas_obl = 1.0*(end - start) / CLK_TCK;                // czas wyznaczany jest w sekundach
      |                                  ^~~~~~~
prog.cc:31:34: error: 'CLK_TCK' was not declared in this scope
   31 |   czas_obl = 1.0*(end - start) / CLK_TCK;                // czas wyznaczany jest w sekundach
      |                                  ^~~~~~~
prog.cc: In function 'long long int iteracja(int)':
prog.cc:64:1: warning: control reaches end of non-void function [-Wreturn-type]
   64 | }
      | ^
prog.cc: In function 'long long int rekurencja(int)':
prog.cc:83:1: warning: control reaches end of non-void function [-Wreturn-type]
   83 | }
      | ^
Exit Code:
1