Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Variable declarations in while loop conditions are also C++-only.

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.22 sec, absolute running time: 0.14 sec, cpu time: 0 sec, memory peak: 3 Mb, absolute service time: 0,36 sec 
edit mode |  history  | discussion
Warning(s):
source_file.cpp:16:11: warning: use of old-style cast [-Wold-style-cast]
    srand((unsigned)time(NULL));
          ^         ~~~~~~~~~~
1 warning generated.
Here's a handful of "random" numbers from 1 to 9:
5
9
7
8
2
4
8
4
9
8
2
6
Done.

    
                
λ
.NET NoSQL database for rapid development