Compile Error
foo.c:1:10: fatal error: bits/stdc++.h: No such file or directory 1 | #include <bits/stdc++.h> | ^~~~~~~~~~~~~~~ compilation terminated.
Code
#include <bits/stdc++.h>
using namespace std;
//SAYED AL MAMUN_LU
void slv()
{
string stone;
cin>>stone;
int totalValue = 0;
for(char ch : stone)
{
if(isdigit(ch))
{
totalValue += ch - '0';
}
}
cout <<totalValue <<endl;
}
int main()
{
int t;
cin>>t;
while(t--)
{
slv();
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1072 Valuable digit
- Contest
- Brain Booster #4
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-07-14 17:24:01
- Judged At
- 2024-11-11 03:23:03
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes