#include <iostream> using namespace std; int main() { cin >> a; cin >> b; cout << a+b << endl; } /* Main.cc: In function 'int main()': Main.cc:6:12: error: 'a' was not declared in this scope cin >> a; ^ Main.cc:7:12: error: 'b' was not declared in this scope cin >> b; ^ */ |
Double click to view unformatted code.