#include<iostream> using namespace std; int main() { int t; cin >> t; while (t--) { int a, b; char c; cin >> a >> c >> b; cout << a + b << endl; } system("pause"); return 0; }
Double click to view unformatted code.