Žurnalas

Taškai: 0

Compile: FAIL

zurnalas.cpp: In function ‘int random()’: zurnalas.cpp:26:12: error: ambiguating new declaration of ‘int random()’ int random(){ ^ In file included from /usr/include/c++/5/cstdlib:72:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:47, from zurnalas.cpp:1: /usr/include/stdlib.h:321:17: note: old declaration ‘long int random()’ extern long int random (void) __THROW; ^ zurnalas.cpp: In function ‘int main()’: zurnalas.cpp:130:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %d", &n); ^ zurnalas.cpp:134:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf(" %1c %d %d", &c, &a, &b); ^ zurnalas.cpp:136:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] char sym; scanf(" %1c", &sym); ^

nr.resulttimemessage