Borderou de evaluare (job #789633)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bravo, ai şir! (Clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 13 oct. 2024 01:03:03 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:24:33: error: request for member 'i' in 'N', which is of non-class type 'unsigned int'
24 | for(unsigned int i=1; i<N. i++) div=gcd(div, A[i]);
| ^
main.cpp:24:36: error: expected ';' before ')' token
24 | for(unsigned int i=1; i<N. i++) div=gcd(div, A[i]);
| ^
| ;
main.cpp:26:20: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
26 | for(int i=0; i<M; i++){fin>>x;
| ~^~