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