Pagini recente » Borderou de evaluare (job #2880261) | Borderou de evaluare (job #2858964) | Borderou de evaluare (job #11014) | Borderou de evaluare (job #3176062) | Borderou de evaluare (job #3244322)
Borderou de evaluare (job #3244322)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:52: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;int f[99999],n,a,i;stack<int>p;main(){ifstream z("parantezare.in");ofstream g("parantezare.out");string s;z>>s>>n;while(i<s.size()){if(s[i]==40)p.push(i);if(s[i]==41)f[p.top()]=i,p.pop();i++;}i=0;while(i<n)z>>a,g<<f[a]<<" ",i++;}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:142: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
2 | using namespace std;int f[99999],n,a,i;stack<int>p;main(){ifstream z("parantezare.in");ofstream g("parantezare.out");string s;z>>s>>n;while(i<s.size()){if(s[i]==40)p.push(i);if(s[i]==41)f[p.top()]=i,p.pop();i++;}i=0;while(i<n)z>>a,g<<f[a]<<" ",i++;}
| ~^~~~~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 348kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 0ms | 303kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | OK | 10 |
7 | 0ms | 303kb | OK | 10 |
8 | 0ms | 303kb | OK | 10 |
9 | 1ms | 819kb | OK | 10 |
10 | 1ms | 819kb | OK | 10 |
Punctaj total | 100 |