Borderou de evaluare (job #594727)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Albine | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 5 apr. 2021 18:12:09 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:33:1: error: 'Post' does not name a type
33 | Post by IOAN ALEXANDRU DRAGU
| ^~~~
main.cpp:42:5: error: conflicting declaration 'int n'
42 | int n,i,j,a[1000],mx,ma,poz,l[1000],nr[1000],s;
| ^
main.cpp:6:20: note: previous declaration as 'long long unsigned int n'
6 | unsigned long long n,k,i,x,s;
| ^
main.cpp:42:7: error: conflicting declaration 'int i'
42 | int n,i,j,a[1000],mx,ma,poz,l[1000],nr[1000],s;
| ^
main.cpp:6:24: note: previous declaration as 'long long unsigned int i'
6 | unsigned long long n,k,i,x,s;
| ^
main.cpp:42:46: error: conflicting declaration 'int s'
42 | int n,i,j,a[1000],mx,ma,poz,l[1000],nr[1000],s;
| ^
main.cpp:6:28: note: previous declaration as 'long long unsigned int s'
6 | unsigned long long n,k,i,x,s;
| ^
main.cpp:43:5: error: redefinition of 'int main()'
43 | int main()
| ^~~~
main.cpp:13:5: note: 'int main()' previously defined here
13 | int main()
| ^~~~
main.cpp: In function 'int main()':
main.cpp:54:21: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
54 | for(j=i+1; j<=n; j++)
| ~^~~
main.cpp:81:20: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
81 | for(j=i+1;j<=n;j++)
| ~^~~