Borderou de evaluare (job #1904861)
Utilizator | Data | 5 martie 2017 20:21:28 | |
---|---|---|---|
Problema | Exp | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:34: error: expected unqualified-id before ‘int’
int M, N, number, i, sqrtNumber, int factor[30001];
^
user.cpp: In function ‘int main()’:
user.cpp:317:17: error: ‘factor’ was not declared in this scope
factor[prime[i]]++;
^
user.cpp:322:13: error: ‘factor’ was not declared in this scope
factor[number]++;
^
user.cpp:328:12: error: ‘factor’ was not declared in this scope
if(factor[prime[i]] == 0) continue;
^
user.cpp:329:12: error: ‘factor’ was not declared in this scope
if(factor[prime[i]] % M == 0){
^
user.cpp:309:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &M, &N);
^
user.cpp:312:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &number);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !