Pagini recente » Cod sursa (job #3220902) | Borderou de evaluare (job #768241) | Borderou de evaluare (job #2976443) | Cod sursa (job #327478) | Borderou de evaluare (job #1954631)
Borderou de evaluare (job #1954631)
Raport evaluator
Compilare:
user.cpp:10:1: warning: ‘typedef’ was ignored in this declaration [enabled by default]
};
^
user.cpp: In function ‘void ReadInput()’:
user.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<n1;i++)
^
user.cpp:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=1;i<n2;i++)
^
user.cpp: In function ‘int main()’:
user.cpp:63:63: warning: narrowing conversion of ‘std::max<int>((* &0), (*(const int*)(& z)))’ from ‘const int’ to ‘unsigned int’ inside { } [-Wnarrowing]
mijloace3.push_back({points1[i],nrp,max(0,z),max(0,t)}); //Pentru fiecare mijloc posibil retinem coordonata, // numarul de dreptunghiuri si pe cel maxim
^
user.cpp:63:63: warning: narrowing conversion of ‘std::max<int>((* &0), (*(const int*)(& t)))’ from ‘const int’ to ‘unsigned int’ inside { } [-Wnarrowing]
user.cpp:80:63: warning: narrowing conversion of ‘std::max<int>((*(const int*)(& z)), (* &0))’ from ‘const int’ to ‘unsigned int’ inside { } [-Wnarrowing]
mijloace2.push_back({points2[i],nrp,max(z,0),max(t,0)}); //Pentru fiecare mijloc posibil retinem coordonata, // numarul de dreptunghiuri si pe cel maxim
^
user.cpp:80:63: warning: narrowing conversion of ‘std::max<int>((*(const int*)(& t)), (* &0))’ from ‘const int’ to ‘unsigned int’ inside { } [-Wnarrowing]
user.cpp:82:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(sol<sz && mijloace[sol].point<points2[i]) sol++;
^
user.cpp:83:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(sol==-1 || mijloace[sol].point!=points2[i]) continue;
^
user.cpp:108:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(sol<sz && mijloace[sol].point<y) sol++;
^
user.cpp:108:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(sol<sz && mijloace[sol].point<y) sol++;
^
user.cpp:55:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapeze2.in","r",stdin);
^
user.cpp:56:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trapeze2.out","w",stdout);
^
user.cpp: In function ‘void ReadInput()’:
user.cpp:18:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u%u%u",&x1,&d1,&n1);
^
user.cpp:19:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%u%u%u",&x2,&d2,&n2);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 556kb | Incorect | 0 |
| 2 | 0ms | 428kb | OK | 10 |
| 3 | 0ms | 556kb | OK | 10 |
| 4 | 0ms | 460kb | OK | 10 |
| 5 | 148ms | 44896kb | Incorect | 0 |
| 6 | 216ms | 51928kb | Incorect | 0 |
| 7 | 0ms | 432kb | OK | 10 |
| 8 | 168ms | 51928kb | Incorect | 0 |
| 9 | 212ms | 51928kb | Incorect | 0 |
| 10 | 4ms | 1692kb | OK | 10 |
| Punctaj total | 50 |