6966557.cpp:27:1: error: stray ‘302’ in program
^
6966557.cpp:27:1: error: stray ‘240’ in program
6966557.cpp: In function ‘int main()’:
6966557.cpp:13:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from 6966557.cpp:2:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
6966557.cpp:13:5: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from 6966557.cpp:2:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
6966557.cpp:13:12: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(ch);
^
In file included from /usr/include/c++/5/cstdio:42:0,
from 6966557.cpp:2:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^
6966557.cpp:10:9: warning: unused variable ‘sum’ [-Wunused-variable]
int sum=0;
^
6966557.cpp: At global scope:
6966557.cpp:24:5: error: ‘cout’ does not name a type
cout<<"no"<<endl;
^
6966557.cpp:25:5: error: expected unqualified-id before ‘return’
return 0;
^
6966557.cpp:26:1: error: expected declaration before ‘}’ token
}
^
6966557.cpp: In function ‘int main()’:
6966557.cpp:13:13: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(ch);
^
|
|