Borderou de evaluare (job #3002605)
Utilizator | Data | 14 martie 2023 22:01:52 | |
---|---|---|---|
Problema | Tastatură defectă | Status | done |
Runda | arhiva-utcn | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:31: warning: extra tokens at end of #include directive
1 | #include <bits/stdc++.h>using namespace std;#define read_fast ios_base::sync_with_stdio(false);fin.tie(NULL);fout.tie(NULL);cin.tie(NULL);cout.tie(NULL);const string file_name = "tastatura2";ifstream fin(file_name + ".in");ofstream fout(file_name + ".out");int main(){read_fast;string a, b;while(true){getline(fin, a);getline(fin, b);if(a == "*" || b == "*")break;int fr1[500] = {0}, fr2[500] = {0}, c = 0;for(int i = 0; i < a.size(); i++){fr1[int(a[i])]++;}for(int i = 0; i < b.size(); i++){if(fr2[int(b[i])] >= 0){fr2[int(b[i])]++;if(fr2[int(b[i])] > fr1[int(b[i])]){c++;fr2[int(b[i])] = -1;}}}fout << c << "\n";}return 0;}
| ^~~~~~~~~
main.cpp:1:10: fatal error: bits/stdc++.h>usin: No such file or directory
1 | #include <bits/stdc++.h>using namespace std;#define read_fast ios_base::sync_with_stdio(false);fin.tie(NULL);fout.tie(NULL);cin.tie(NULL);cout.tie(NULL);const string file_name = "tastatura2";ifstream fin(file_name + ".in");ofstream fout(file_name + ".out");int main(){read_fast;string a, b;while(true){getline(fin, a);getline(fin, b);if(a == "*" || b == "*")break;int fr1[500] = {0}, fr2[500] = {0}, c = 0;for(int i = 0; i < a.size(); i++){fr1[int(a[i])]++;}for(int i = 0; i < b.size(); i++){if(fr2[int(b[i])] >= 0){fr2[int(b[i])]++;if(fr2[int(b[i])] > fr1[int(b[i])]){c++;fr2[int(b[i])] = -1;}}}fout << c << "\n";}return 0;}
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !