Cod sursa(job #2976337)
Utilizator | Data | 8 februarie 2023 22:58:32 | |
---|---|---|---|
Problema | PalM | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.34 kb |
#include <iostream>
#include <fstream>
using namespace std;
ifstream fin("asd.in");
ofstream fout("asd.out");
int n, k, a[100005], s[100005];
int main()
{
char c[21] = "tamara", * p;
p = new char;
for (int i = 0; i <= strlen(c); i = i + 1)
{
p = strchr(c, 'a');
}
cout << p - c;
return 0;
}