QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#602696 | #3426. Icons in the Toolbar | ZhangYiDe | Compile Error | / | / | C++20 | 548b | 2024-10-01 12:09:08 | 2024-10-01 12:09:10 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main(int, const char**)’: answer.code:2:11: error: ‘cin’ was not declared in this scope 2 | int n; cin >> n; 9 int n; cin >> n; | ^~~ answer.code:2:32: error: expected ‘;’ before ‘int’ 2 | int n; cin >> n; 9 int n; cin >> n; | ^~~~~~~ ~~~ | ; answer.code:4:24: error: ‘vector’ was not declared in this scope 4 | vector<vector<int>> vi(2, vector<int> (n)); | ^~~~~~ answer.code:4:31: error: expected primary-expression before ‘int’ 4 | vector<vector<int>> vi(2, vector<int> (n)); | ^~~ answer.code:5:52: error: ‘vi’ was not declared in this scope; did you mean ‘i’? 5 | for(int i = 0; i < n; i++) {cin >> vi[0][i]; sum += vi[0][i];} | ^~ | i answer.code:6:51: error: ‘vi’ was not declared in this scope; did you mean ‘i’? 6 | for(int i = 0; i < n; i++) cin >> vi[1][i]; | ^~ | i answer.code:7:37: error: ‘vi’ was not declared in this scope 7 | long long mn = sum*(vi[0][0] + vi[1][0]); | ^~ answer.code:13:21: error: ‘cout’ was not declared in this scope 13 | cout << vi[0][i] << endl; | ^~~~ answer.code:13:41: error: ‘endl’ was not declared in this scope 13 | cout << vi[0][i] << endl; | ^~~~ answer.code:16:18: error: ‘cout’ was not declared in this scope 16 | cout << mn << endl; | ^~~~ answer.code:16:32: error: ‘endl’ was not declared in this scope 16 | cout << mn << endl; | ^~~~ answer.code:17:2: error: expected ‘}’ at end of input 17 | } | ^ answer.code:9:27: note: to match this ‘{’ 9 | for(int i = 0; i < n; i++){ | ^ answer.code:17:2: error: expected ‘}’ at end of input 17 | } | ^ answer.code:1:39: note: to match this ‘{’ 1 | int main(int argc, char const *argv[]){ | ^