Lỗi biên dịch:
Main.cc: In function ‘int main()’:
Main.cc:9:5: error: ‘string’ was not declared in this scope
string dap_an,bai_lam;
^~~~~~
Main.cc:9:5: note: suggested alternative: ‘stdin’
string dap_an,bai_lam;
^~~~~~
stdin
Main.cc:10:5: error: ‘cin’ was not declared in this scope
cin >> so_cau_trac_nghiem;
^~~
Main.cc:10:5: note: suggested alternative: ‘sin’
cin >> so_cau_trac_nghiem;
^~~
sin
Main.cc:11:12: error: ‘dap_an’ was not declared in this scope
cin >> dap_an;
^~~~~~
Main.cc:11:12: note: suggested alternative: ‘atan’
cin >> dap_an;
^~~~~~
atan
Main.cc:16:13: error: ‘bai_lam’ was not declared in this scope
cin >> bai_lam;
^~~~~~~
Main.cc:16:13: note: suggested alternative: ‘basename’
cin >> bai_lam;
^~~~~~~
basename
Main.cc:26:3: error: ‘cout’ was not declared in this scope
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~
Main.cc:26:3: note: suggested alternative: ‘cosl’
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~
cosl
Main.cc:26:11: error: ‘fixed’ was not declared in this scope
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~~
Main.cc:26:20: error: ‘setprecision’ was not declared in this scope
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~~~~~~~~~
Main.cc:26:20: note: suggested alternative: ‘strcspn’
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~~~~~~~~~
strcspn
Main.cc:26:50: error: ‘endl’ was not declared in this scope
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~
Main.cc:26:50: note: suggested alternative: ‘ynl’
cout << fixed << setprecision(2) << diem[i] << endl;
^~~~
ynl