#include <iostream>using namespace std; int main() { // your code goes here} //<--- błędny nawias return 0; //w C++ return 0; można pominąć - wtedy kompilator uzupełni to} // <-- nadmiarowy nawias, możesz go usunąć, a nadal będzie błąd
Standard input is empty
prog.cpp:7:2: error: expected unqualified-id before ‘return’ return 0; ^~~~~~ prog.cpp:9:1: error: expected declaration before ‘}’ token } // <-- nadmiarowy nawias, możesz go usunąć, a nadal będzie błąd ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!