Problem | trivialexam_ex_ex |
---|---|
User | jeongwonho64 |
Submission Time | 2023-04-04 10:41:35 |
Score | 0 |
Owl Get a Life
trivialexam_ex_ex.cpp: In function ‘int main()’:
trivialexam_ex_ex.cpp:4:13: error: expected identifier before ‘-’ token
4 | int ans = [-1000000,1,3,1,4,2];
| ^
trivialexam_ex_ex.cpp:4:21: error: expected ‘]’ before ‘,’ token
4 | int ans = [-1000000,1,3,1,4,2];
| ^
| ]
trivialexam_ex_ex.cpp: In lambda function:
trivialexam_ex_ex.cpp:4:21: error: expected ‘{’ before ‘,’ token
trivialexam_ex_ex.cpp: In function ‘int main()’:
trivialexam_ex_ex.cpp:4:21: error: invalid user-defined conversion from ‘main()::<lambda()>’ to ‘int’ [-fpermissive]
trivialexam_ex_ex.cpp:4:12: note: candidate is: ‘constexpr main()::<lambda()>::operator void (*)()() const’ <near match>
4 | int ans = [-1000000,1,3,1,4,2];
| ^
trivialexam_ex_ex.cpp:4:12: note: no known conversion from ‘void (*)()’ to ‘int’
trivialexam_ex_ex.cpp:4:22: error: expected