Problem whalegroups
User ForgottenDragon
Submission Time 2025-05-14 14:21:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

whalegroups.cpp: In function ‘int main()’:
whalegroups.cpp:16:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
16 | if (N[a] == "0") count--;
| ^~~
whalegroups.cpp:22:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
22 | if (N[b] != "0") cout << int(N[b]) * pow(10, int(N.length() - b - 1));
| ^~~