Borderou de evaluare (job #1084892)
Utilizator | Data | 16 ianuarie 2014 20:31:06 | |
---|---|---|---|
Problema | K Aparitii | Status | done |
Runda | Infoarena Monthly 2014 - Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:18: error: size of array ‘a’ is too large
long a[1000000000],n;
^
user.cpp: In function ‘int main()’:
user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d%d",&n,&k);
^
user.cpp:11:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=]
user.cpp:15:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf (f,"%d",&x);
^
user.cpp:16:3: error: ‘a’ was not declared in this scope
a[x]++;
^
user.cpp:20:7: error: ‘a’ was not declared in this scope
if (a[i]%k!=0)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !