Pagini recente » Borderou de evaluare (job #3256152) | Borderou de evaluare (job #1336806) | Borderou de evaluare (job #144750) | Borderou de evaluare (job #1583897) | Borderou de evaluare (job #2896002)
Borderou de evaluare (job #2896002)
Raport evaluator
Compilare:
main.cpp:2:27: warning: multi-character character constant [-Wmultichar]
2 | using namespace std;int l['Ⅿ'],v['Ⅿ'],n,i,j,m=1;vector<tuple<int,int>>s;ifstream f("sport.in");ofstream g("sport.out");main(){f>>n;for(;i<n;i++)f>>j,s.push_back(make_pair(j,i)),l[i]=1;sort(s.begin(),s.end());j=1e3;for(auto&[u,p]:s){if(j<p)l[p]+=l[j],m=l[p]>m?l[p]:m;j=p;}g<<n-m;}
| ^~~
main.cpp:2:36: warning: multi-character character constant [-Wmultichar]
2 | using namespace std;int l['Ⅿ'],v['Ⅿ'],n,i,j,m=1;vector<tuple<int,int>>s;ifstream f("sport.in");ofstream g("sport.out");main(){f>>n;for(;i<n;i++)f>>j,s.push_back(make_pair(j,i)),l[i]=1;sort(s.begin(),s.end());j=1e3;for(auto&[u,p]:s){if(j<p)l[p]+=l[j],m=l[p]>m?l[p]:m;j=p;}g<<n-m;}
| ^~~
main.cpp:2:124: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;int l['Ⅿ'],v['Ⅿ'],n,i,j,m=1;vector<tuple<int,int>>s;ifstream f("sport.in");ofstream g("sport.out");main(){f>>n;for(;i<n;i++)f>>j,s.push_back(make_pair(j,i)),l[i]=1;sort(s.begin(),s.end());j=1e3;for(auto&[u,p]:s){if(j<p)l[p]+=l[j],m=l[p]>m?l[p]:m;j=p;}g<<n-m;}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:228: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
2 | using namespace std;int l['Ⅿ'],v['Ⅿ'],n,i,j,m=1;vector<tuple<int,int>>s;ifstream f("sport.in");ofstream g("sport.out");main(){f>>n;for(;i<n;i++)f>>j,s.push_back(make_pair(j,i)),l[i]=1;sort(s.begin(),s.end());j=1e3;for(auto&[u,p]:s){if(j<p)l[p]+=l[j],m=l[p]>m?l[p]:m;j=p;}g<<n-m;}
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 1ms | 184kb | OK | 10 |
4 | 1ms | 184kb | OK | 10 |
5 | 1ms | 184kb | OK | 10 |
6 | 1ms | 184kb | OK | 10 |
7 | 1ms | 184kb | OK | 10 |
8 | 1ms | 184kb | OK | 10 |
9 | 1ms | 184kb | OK | 10 |
10 | 1ms | 184kb | OK | 10 |
Punctaj total | 100 |