Borderou de evaluare (job #2203387)
| Utilizator | Data | 12 mai 2018 09:34:48 | |
|---|---|---|---|
| Problema | Reactivi | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
| Scor | 100 | ||
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:385: warning: unused variable ‘j’ [-Wunused-variable]
int n,i,j,k=0;cin>>n;int a,b;for(i=1;i<=n;i++){cin>>a>>b;a+=100;b+=100;f[b]++;v[a].push_back(b);}int nr=0;for(i=0;i<=200;i++){for(auto j:v[i]){x.push_back(j);}if(f[i]>=1){for(auto j:x){f[j]--;}x.clear();k++;}}cout<<k;
^
user.cpp:11:478: warning: unused variable ‘nr’ [-Wunused-variable]
int n,i,j,k=0;cin>>n;int a,b;for(i=1;i<=n;i++){cin>>a>>b;a+=100;b+=100;f[b]++;v[a].push_back(b);}int nr=0;for(i=0;i<=200;i++){for(auto j:v[i]){x.push_back(j);}if(f[i]>=1){for(auto j:x){f[j]--;}x.clear();k++;}}cout<<k;
^~
user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reactivi.in","r",stdin);
^
user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("reactivi.out","w",stdout);
^
| Test | Timp executie | Memorie folosita | Mesaj | Punctaj/test | Punctaj/grupa |
|---|---|---|---|---|---|
| 1 | 0ms | 1320kb | OK | 10 | 10 |
| 2 | 0ms | 1320kb | OK | 10 | 10 |
| 3 | 0ms | 1336kb | OK | 10 | 10 |
| 4 | 12ms | 1392kb | OK | 10 | 10 |
| 5 | 4ms | 1352kb | OK | 10 | 60 |
| 6 | 0ms | 1320kb | OK | 10 | |
| 7 | 12ms | 1436kb | OK | 10 | |
| 8 | 0ms | 1328kb | OK | 10 | |
| 9 | 12ms | 1372kb | OK | 10 | |
| 10 | 0ms | 1320kb | OK | 10 | |
| Punctaj total | 100 | ||||
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
