[ create a new paste ] login | about

Link: http://codepad.org/0PD7pPSj    [ raw code | output | fork ]

C++, pasted on Jun 23:
1
2
3
4
5
6
7
8
9
10
11
#include <cstdio>
#include <string>

int main()
{
   int i;
   std::string s;
   printf("%d %d",i);
   printf("%d",s.c_str()); 
   return 0;
}


Output:
1
2
3
4
cc1plus: warnings being treated as errors
In function 'int main()':
Line 8: warning: too few arguments for format
Line 9: warning: format '%d' expects type 'int', but argument 2 has type 'const char*'


Create a new paste based on this one


Comments: