编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#1862 | #998. 救救小关 | Compile Error | 0 | 0 ms | 0 K | C++ 17 / 280 B | s230026047 | 2023-10-15 16:57:50 |
using namespace std;
int
//刚学c++两天翻车了233333
编译信息
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:8:6: error: expected identifier before numeric constant
8 | int[2] R={x,y};
| ^
/sandbox/1/a.cpp:8:6: error: expected ']' before numeric constant
8 | int[2] R={x,y};
| ^
| ]
/sandbox/1/a.cpp:8:5: error: structured binding declaration cannot have type 'int'
8 | int[2] R={x,y};
| ^
/sandbox/1/a.cpp:8:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
/sandbox/1/a.cpp:8:5: error: empty structured binding declaration
/sandbox/1/a.cpp:8:9: error: expected initializer before 'R'
8 | int[2] R={x,y};
| ^
/sandbox/1/a.cpp:9:6: error: expected identifier before numeric constant
9 | int[2] L={x,y};
| ^
/sandbox/1/a.cpp:9:6: error: expected ']' before numeric constant
9 | int[2] L={x,y};
| ^
| ]
/sandbox/1/a.cpp:9:5: error: structured binding declaration cannot have type 'int'
9 | int[2] L={x,y};
| ^
/sandbox/1/a.cpp:9:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
/sandbox/1/a.cpp:9:5: error: empty structured binding declaration
/sandbox/1/a.cpp:9:9: error: expected initializer before 'L'
9 | int[2] L={x,y};
| ^
/sandbox/1/a.cpp:10:6: error: expected identifier before numeric constant
10 | int[2] U={x,y};
| ^
/sandbox/1/a.cpp:10:6: error: expected ']' before numeric constant
10 | int[2] U={x,y};
| ^
| ]
/sandbox/1/a.cpp:10:5: error: structured binding declaration cannot have type 'int'
10 | int[2] U={x,y};
| ^
/sandbox/1/a.cpp:10:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
/sandbox/1/a.cpp:10:5: error: empty structured binding declaration
/sandbox/1/a.cpp:10:9: error: expected initializer before 'U'
10 | int[2] U={x,y};
| ^
/sandbox/1/a.cpp:11:6: error: expected identifier before numeric constant
11 | int[2] D={x,y};
| ^
/sandbox/1/a.cpp:11:6: error: expected ']' before numeric constant
11 | int[2] D={x,y};
| ^
| ]
/sandbox/1/a.cpp:11:5: error: structured binding declaration cannot have type 'int'
11 | int[2] D={x,y};
| ^
/sandbox/1/a.cpp:11:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
/sandbox/1/a.cpp:11:5: error: empty structured binding declaration
/sandbox/1/a.cpp:11:9: error: expected initializer before 'D'
11 | int[2] D={x,y};
| ^
/sandbox/1/a.cpp:14:9: error: 'N' was not declared in this scope
14 | cin >> N >> M >> H >>K;
| ^
/sandbox/1/a.cpp:14:14: error: 'M' was not declared in this scope
14 | cin >> N >> M >> H >>K;
| ^
/sandbox/1/a.cpp:14:23: error: 'K' was not declared in this scope
14 | cin >> N >> M >> H >>K;
| ^