Problem pythonlist
User Bensamuel2008
Submission Time 2025-06-18 09:44:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:7:14: error: expected ‘;’ before ‘==’ token
7 | for (int i==0, i<Q, i++){
| ^~
| ;
pythonlist.cpp:7:14: error: expected primary-expression before ‘==’ token
7 | for (int i==0, i<Q, i++){
| ^~
pythonlist.cpp:7:27: error: expected ‘;’ before ‘)’ token
7 | for (int i==0, i<Q, i++){
| ^
| ;
pythonlist.cpp:9:19: error: ‘Y’ cannot be used as a function
9 | if (sizeof(Y(i))>0){
| ^
pythonlist.cpp:10:13: error: ‘X’ cannot be used as a function
10 | if (X(i)==1){
| ^
pythonlist.cpp:11:32: error: ‘Y’ cannot be used as a function
11 | cout << list.push_back(Y(i));
| ^
pythonlist.cpp:13:16: error: invalid use of non-stati