fork download
  1. total = 0 ; k = 1 ; do { total += k * k * k ; k ++ ; } while ( k <= n ) ;
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:1: error: ‘total’ does not name a type
 total = 0 ; k = 1 ; do { total += k * k * k ; k ++ ; } while ( k <= n ) ;
 ^~~~~
prog.cpp:1:13: error: ‘k’ does not name a type
 total = 0 ; k = 1 ; do { total += k * k * k ; k ++ ; } while ( k <= n ) ;
             ^
prog.cpp:1:21: error: expected unqualified-id before ‘do’
 total = 0 ; k = 1 ; do { total += k * k * k ; k ++ ; } while ( k <= n ) ;
                     ^~
prog.cpp:1:56: error: expected unqualified-id before ‘while’
 total = 0 ; k = 1 ; do { total += k * k * k ; k ++ ; } while ( k <= n ) ;
                                                        ^~~~~
stdout
Standard output is empty