Borderou de evaluare (job #1455458)

Utilizator DanielRusuDaniel Rusu DanielRusu Data 28 iunie 2015 00:53:43
Problema Statistici de ordine Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:58:14: error: ‘n’ was not declared in this scope int v = [n]; ^ user.cpp: In lambda function: user.cpp:58:16: error: expected ‘{’ before ‘;’ token int v = [n]; ^ user.cpp: In function ‘int main()’: user.cpp:58:16: error: invalid user-defined conversion from ‘main()::__lambda0’ to ‘int’ [-fpermissive] user.cpp:58:15: note: candidate is: main()::__lambda0::operator void (*)()() const <near match> int v = [n]; ^ user.cpp:58:15: note: no known conversion for implicit ‘this’ parameter from ‘void (*)()’ to ‘int’ user.cpp:59:27: error: initializer fails to determine size of ‘a’ int a[] = new int [100]; ^ user.cpp:59:27: error: array must be initialized with a brace-enclosed initializer user.cpp:58:9: warning: unused variable ‘v’ [-Wunused-variable] int v = [n]; ^ user.cpp:59:9: warning: unused variable ‘a’ [-Wunused-variable] int a[] = new int [100]; ^ user.cpp:50:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d\n", &N, &K); ^ user.cpp:53:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &V[i]); ^

Ceva nu functioneaza?