| Problem | wv |
|---|---|
| User | om2024 |
| Submission Time | 2025-11-12 12:02:32 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
wv.cpp: In function ‘int main()’:
wv.cpp:7:21: error: ‘n’ was not declared in this scope
7 | for (int i=0; i<n; i++) {
| ^
wv.cpp:12:21: error: ‘n’ was not declared in this scope
12 | for (int j=0; j<n; j++) {
| ^
wv.cpp:13:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if (arr[j]=="v") ans+=1;
| ^~~
wv.cpp:14:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | else if (arr[j]=="w") ans +=2;
| ^~~