Problem card
User vadar2525
Submission Time 2025-08-20 16:40:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:10:9: error: ‘n’ was not declared in this scope
10 | char a[n];
| ^
card.cpp:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a[i];
| ^
card.cpp:17:6: error: ‘a’ was not declared in this scope
17 | if(a[i] == 'A'){
| ^
card.cpp:19:4: error: expected ‘,’ or ‘;’ before ‘a’
19 | a.push_back(s);
| ^
card.cpp:28:10: error: ‘a’ was not declared in this scope
28 | cout << a[k-1] << " " << a[k] << " " << a[k+1];
| ^