Borderou de evaluare (job #1048786)

Utilizator BAndreiBolovan Andrei BAndrei Data 6 decembrie 2013 14:07:39
Problema Copaci Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fp, "%d", &n); ^ user.cpp:18:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int’ [-Wformat=] fscanf(fp, "%d %d", a1, a2); //coordonatele primului punct citit cu ajutorul caruia se vor triangula celelalte puncte, 2 cate 2 ^ user.cpp:18:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int’ [-Wformat=] fscanf(fp, "%d %d", b1, b2); ^ user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:20:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int’ [-Wformat=] fscanf(fp, "%d %d", c1, c2);//citim coord. urm. 2 puncte pentru a putea permuta in aceleasi variabile in loc de a memora intr-o matrice ^ user.cpp:20:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:35:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int’ [-Wformat=] fscanf(fp, "%d %d", c1, c2); ^ user.cpp:35:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:53:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d", rez); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbKilled by signal 11(SIGSEGV).0
20ms240kbKilled by signal 11(SIGSEGV).0
30ms236kbKilled by signal 11(SIGSEGV).0
40ms236kbKilled by signal 11(SIGSEGV).0
50ms236kbKilled by signal 11(SIGSEGV).0
60ms240kbKilled by signal 11(SIGSEGV).0
70ms236kbKilled by signal 11(SIGSEGV).0
80ms236kbKilled by signal 11(SIGSEGV).0
90ms236kbKilled by signal 11(SIGSEGV).0
100ms236kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?