Problem | yaleuniversity |
---|---|
User | nmluan |
Submission Time | 2025-02-03 10:33:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
yaleuniversity.cpp:5:8: error: expected identifier before numeric constant
5 | string[5000005] a;
| ^~~~~~~
yaleuniversity.cpp:5:8: error: expected ‘]’ before numeric constant
5 | string[5000005] a;
| ^~~~~~~
| ]
yaleuniversity.cpp:5:7: error: structured binding declaration cannot have type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
5 | string[5000005] a;
| ^
yaleuniversity.cpp:5:7: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
yaleuniversity.cpp:5:7: error: empty structured binding declaration
yaleuniversity.cpp:5:17: error: expected initializer before ‘a’
5 | string[5000005] a;
| ^
yaleuniversity.cpp: In function ‘int main()’:
yaleuniversity.cpp:11:16: error: ‘a’ was not declared in this scope
11 | cin >> a;
| ^
yaleuniversity.cpp:17:15: error: ‘a’ was not