Borderou de evaluare (job #753582)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Divprimi (clasa a 10-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 2 ian. 2024 16:30:42 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool main()::<unnamed struct>::operator()(unsigned int, unsigned int) const':
main.cpp:15:16: error: 'ciur' was not declared in this scope
15 | if(ciur[a] != ciur[b]) {
| ^~~~
main.cpp: In function 'int main()':
main.cpp:28:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
28 | for(int i=2; i<=N; i++) {
| ~^~~
main.cpp:30:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
30 | for(int j=i; j<=N; j+=i) {
| ~^~~
main.cpp:35:19: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
35 | for(int i=1; i<=N; i++) {
| ~^~~